summaryrefslogtreecommitdiff
path: root/lib/libalpm
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-10-16 04:32:15 +0000
committerAaron Griffin <aaron@archlinux.org>2006-10-16 04:32:15 +0000
commit6f5bf3fa545c0e236f425c5a77c4fe1a5ea9a454 (patch)
treef5301f995d5626bf22443e92d1798314d11481a2 /lib/libalpm
parent558e49698dcb0a4105acfbd2a12b8125d032083b (diff)
downloadpacman-6f5bf3fa545c0e236f425c5a77c4fe1a5ea9a454.tar.xz
Adjust progress bar to align with frugalware's progressbar
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/server.c8
1 files changed, 4 insertions, 4 deletions
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;