index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | lib/libalpm/dload.c | 2 |
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index 357544bb..0cd0bf7b 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -362,7 +362,7 @@ static int curl_download_internal(struct dload_payload *payload, destfile = get_fullpath(localpath, payload->cd_filename, ""); } else { const char *effective_filename = strrchr(effective_url, '/'); - if(effective_filename) { + if(effective_filename && strlen(effective_filename) > 2) { effective_filename++; /* if destfile was never set, we wrote to a tempfile. even if destfile is |