summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2017-05-11 00:44:51 +0200
committerAndrew Gregory <andrew.gregory.8@gmail.com>2017-05-11 00:50:34 +0200
commitdb7f5b98fb97c2cd63ef0c092777e46bfc2bd211 (patch)
treeccd415b826899f06d347bcf9bdb6947e57f40470
parent9dd02034bf70d8503014da5cb67b43ce9b509eea (diff)
downloadpacman-db7f5b98fb97c2cd63ef0c092777e46bfc2bd211.tar.gz
pacman-db7f5b98fb97c2cd63ef0c092777e46bfc2bd211.tar.xz
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 <andrew.gregory.8@gmail.com>
-rw-r--r--src/pacman/pacman.c2
1 files changed, 1 insertions, 1 deletions
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;