diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2017-05-10 18:54:57 -0400 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2017-05-16 12:44:08 +1000 |
commit | 5a1bf3d80367a64ab90368bbf5282c37714b5086 (patch) | |
tree | c725bb4650d549cc851aa55b3f4780ec9129eb91 /src | |
parent | 63087c31b5bdd7a16d312d9bf938f6cfd4a635b0 (diff) | |
download | pacman-5a1bf3d80367a64ab90368bbf5282c37714b5086.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>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src')
-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; |