summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2012-07-10 12:41:55 +0000
committerEric Faurot <eric@cvs.openbsd.org>2012-07-10 12:41:55 +0000
commit11d1a156dbff60158586eb151499cf6a46104383 (patch)
treefd6ba6b707df660f602caaf979464175a79a6ccb /lib/libc
parent9888a79d217db040e9827eff5502198e36ab4691 (diff)
use the value actually passed to the function
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/asr/gethostnamadr_async.c4
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);