diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2017-05-11 00:44:51 +0200 |
---|---|---|
committer | Andrew Gregory <andrew.gregory.8@gmail.com> | 2017-05-11 00:50:34 +0200 |
commit | db7f5b98fb97c2cd63ef0c092777e46bfc2bd211 (patch) | |
tree | ccd415b826899f06d347bcf9bdb6947e57f40470 | |
parent | 9dd02034bf70d8503014da5cb67b43ce9b509eea (diff) | |
download | pacman-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.c | 2 |
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; |