summaryrefslogtreecommitdiffstats
path: root/lib/libalpm
diff options
context:
space:
mode:
authorDavid Macek <david.macek.0@gmail.com>2015-04-17 17:31:19 +0200
committerAllan McRae <allan@archlinux.org>2015-05-12 06:00:55 +0200
commitd568a4335bd372e490f28acd25f8b2bd1b560730 (patch)
tree474b5a1e0abb0b785567d2a80bc0fbb228e0f4f6 /lib/libalpm
parent99c7b1b0882ccf816fcabdc937b05260422df1f3 (diff)
downloadpacman-d568a4335bd372e490f28acd25f8b2bd1b560730.tar.gz
pacman-d568a4335bd372e490f28acd25f8b2bd1b560730.tar.xz
Fix comment in alpm_db_update
Fix comment to better explain the magic constant used when allocating a buffer for ".db.sig" URL. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/be_sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c
index 20130dcd..45d47004 100644
--- a/lib/libalpm/be_sync.c
+++ b/lib/libalpm/be_sync.c
@@ -247,7 +247,7 @@ int SYMEXPORT alpm_db_update(int force, alpm_db_t *db)
/* print final_db_url into a buffer (leave space for .sig) */
len = strlen(final_db_url) + 5;
} else {
- /* print server + filename into a buffer (leave space for .sig) */
+ /* print server + filename into a buffer (leave space for separator and .db.sig) */
len = strlen(server) + strlen(db->treename) + 9;
}