[pacman-dev] [PATCH v2 2/2] Fix comment in alpm_db_update

David Macek david.macek.0 at gmail.com
Fri Apr 17 15:31:19 UTC 2015


Fix comment to better explain the magic constant used when allocating a buffer
for ".db.sig" URL.
---
 lib/libalpm/be_sync.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c
index 606c4a0..ea979e6 100644
--- a/lib/libalpm/be_sync.c
+++ b/lib/libalpm/be_sync.c
@@ -254,7 +254,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;
 			}
 
-- 
2.3.5

-- 
David Macek

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4234 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.archlinux.org/pipermail/pacman-dev/attachments/20150417/42af1af2/attachment.p7s>


More information about the pacman-dev mailing list