diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2012-07-10 12:41:55 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2012-07-10 12:41:55 +0000 |
commit | 11d1a156dbff60158586eb151499cf6a46104383 (patch) | |
tree | fd6ba6b707df660f602caaf979464175a79a6ccb /lib/libc | |
parent | 9888a79d217db040e9827eff5502198e36ab4691 (diff) |
use the value actually passed to the function
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/asr/gethostnamadr_async.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/asr/gethostnamadr_async.c b/lib/libc/asr/gethostnamadr_async.c index 535c523b014..5ec66046c1c 100644 --- a/lib/libc/asr/gethostnamadr_async.c +++ b/lib/libc/asr/gethostnamadr_async.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gethostnamadr_async.c,v 1.2 2012/04/25 20:28:25 eric Exp $ */ +/* $OpenBSD: gethostnamadr_async.c,v 1.3 2012/07/10 12:41:54 eric Exp $ */ /* * Copyright (c) 2012 Eric Faurot <eric@openbsd.org> * @@ -353,7 +353,7 @@ hostent_file_match(FILE *f, int type, int family, int len, const char *data, int n, i; for(;;) { - n = asr_parse_namedb_line(f, tokens, MAXTOKEN); + n = asr_parse_namedb_line(f, tokens, ntokens); if (n == -1) return (-1); |