From d568a4335bd372e490f28acd25f8b2bd1b560730 Mon Sep 17 00:00:00 2001 From: David Macek Date: Fri, 17 Apr 2015 17:31:19 +0200 Subject: 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 --- lib/libalpm/be_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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; } -- cgit v1.2.3