diff options
Diffstat (limited to 'libc/inet')
-rw-r--r-- | libc/inet/resolv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c index 8e5a97db0..de038e400 100644 --- a/libc/inet/resolv.c +++ b/libc/inet/resolv.c @@ -1596,7 +1596,7 @@ parser_t * __open_etc_hosts(void) #define MINTOKENS 2 /* ip address + canonical name */ #define MAXTOKENS (MINTOKENS + MAXALIASES) -#define HALISTOFF (sizeof(char*) * MAXTOKENS) +#define HALISTOFF (sizeof(char*) * (MAXTOKENS + 1)) /* reserve space for list terminator */ #define INADDROFF (HALISTOFF + 2 * sizeof(char*)) int __read_etc_hosts_r( |