index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aaron Griffin <aaron@archlinux.org> | 2006-10-16 04:32:15 +0000 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2006-10-16 04:32:15 +0000 |
commit | 6f5bf3fa545c0e236f425c5a77c4fe1a5ea9a454 (patch) | |
tree | f5301f995d5626bf22443e92d1798314d11481a2 /lib/libalpm | |
parent | 558e49698dcb0a4105acfbd2a12b8125d032083b (diff) |
-rw-r--r-- | lib/libalpm/server.c | 8 |
diff --git a/lib/libalpm/server.c b/lib/libalpm/server.c index a0f38c42..86271b57 100644 --- a/lib/libalpm/server.c +++ b/lib/libalpm/server.c @@ -300,11 +300,11 @@ int _alpm_downloadfiles_forreal(PMList *servers, const char *localpath, struct stat st; snprintf(output, PATH_MAX, "%s/%s.part", localpath, fn); if(pm_dlfnm) { - strncpy(pm_dlfnm, fn, 24); + strncpy(pm_dlfnm, fn, 22); } /* drop filename extension */ ptr = strstr(fn, PM_EXT_DB); - if(pm_dlfnm && ptr && (ptr-fn) < 24) { + if(pm_dlfnm && ptr && (ptr-fn) < 22) { pm_dlfnm[ptr-fn] = '\0'; } ptr = strstr(fn, PM_EXT_PKG); @@ -312,10 +312,10 @@ int _alpm_downloadfiles_forreal(PMList *servers, const char *localpath, pm_dlfnm[ptr-fn] = '\0'; } if(pm_dlfnm) { - for(j = strlen(pm_dlfnm); j < 24; j++) { + for(j = strlen(pm_dlfnm); j < 22; j++) { (pm_dlfnm)[j] = ' '; } - pm_dlfnm[24] = '\0'; + pm_dlfnm[22] = '\0'; } if(pm_dloffset) { *pm_dloffset = 0; |