From 5a1bf3d80367a64ab90368bbf5282c37714b5086 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Wed, 10 May 2017 18:54:57 -0400 Subject: remove unused byte from user agent buffer snprintf prints at most n bytes including the terminating '\0'. The extra reserved byte was never being used. Signed-off-by: Andrew Gregory Signed-off-by: Allan McRae --- src/pacman/pacman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 11b7e6f0..8c7f715e 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -269,7 +269,7 @@ static void localize(void) */ static void setuseragent(void) { - char agent[101]; + char agent[100]; struct utsname un; int len; -- cgit v1.2.3