From 6f5bf3fa545c0e236f425c5a77c4fe1a5ea9a454 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Mon, 16 Oct 2006 04:32:15 +0000 Subject: Adjust progress bar to align with frugalware's progressbar --- lib/libalpm/server.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/libalpm') 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; -- cgit v1.2.3-70-g09d2