Fix off by one error in sscanf length arg.

This commit is contained in:
Alexei Svitkine 2016-12-17 22:43:38 -05:00
parent d19e757e1c
commit 6bc3dd29a8

View File

@ -84,7 +84,7 @@ static int get_dns_addr(struct in_addr *pdns_addr)
static int get_dns_addr(struct in_addr *pdns_addr)
{
char buff[512];
char buff2[256];
char buff2[256+1];
FILE *f;
int found = 0;
struct in_addr tmp_addr;