From 6bc3dd29a8070946332eba4c565adcbc86414feb Mon Sep 17 00:00:00 2001 From: Alexei Svitkine Date: Sat, 17 Dec 2016 22:43:38 -0500 Subject: [PATCH] Fix off by one error in sscanf length arg. --- BasiliskII/src/slirp/slirp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BasiliskII/src/slirp/slirp.c b/BasiliskII/src/slirp/slirp.c index d8f2a954..dc2fdc65 100644 --- a/BasiliskII/src/slirp/slirp.c +++ b/BasiliskII/src/slirp/slirp.c @@ -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;