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:
parent
63087c31b5
commit
5a1bf3d803
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ static void localize(void)
|
|||
*/
|
||||
static void setuseragent(void)
|
||||
{
|
||||
char agent[101];
|
||||
char agent[100];
|
||||
struct utsname un;
|
||||
int len;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue