From 5baba8439761a54c488ff42e4e599b3c93dbe669 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 6 Mar 2007 01:21:41 +0000 Subject: * Added missing header include guards in md5.h and sha1.h. * Some header cleanup on the pacman side of things - we had alpm.h instead alpm_list.h in a few headers. * removed an extra slash in path-building snprintf in server.c. --- lib/libalpm/server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libalpm/server.c') diff --git a/lib/libalpm/server.c b/lib/libalpm/server.c index fb3c4147..f9ff6e5d 100644 --- a/lib/libalpm/server.c +++ b/lib/libalpm/server.c @@ -203,8 +203,8 @@ int _alpm_downloadfiles_forreal(alpm_list_t *servers, const char *localpath, } _alpm_log(PM_LOG_DEBUG, _("using '%s' for download progress"), pkgname); - snprintf(realfile, PATH_MAX, "%s/%s", localpath, fn); - snprintf(output, PATH_MAX, "%s/%s.part", localpath, fn); + snprintf(realfile, PATH_MAX, "%s%s", localpath, fn); + snprintf(output, PATH_MAX, "%s%s.part", localpath, fn); if(alpm_list_find_str(complete, fn)) { continue; -- cgit v1.2.3-24-g4f1b