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>
This commit is contained in:
Andrew Gregory 2017-05-10 18:54:57 -04:00 committed by Allan McRae
parent 63087c31b5
commit 5a1bf3d803

View file

@ -269,7 +269,7 @@ static void localize(void)
*/ */
static void setuseragent(void) static void setuseragent(void)
{ {
char agent[101]; char agent[100];
struct utsname un; struct utsname un;
int len; int len;