diff options
author | 2012-07-10 12:41:54 +0000 | |
---|---|---|
committer | 2012-07-10 12:41:54 +0000 | |
commit | c5c26eb03c45f620a78670019205d32c19b17de6 (patch) | |
tree | 1c593a1dd6301b41753a5c32d59888b3832f3cc9 /lib/libc/asr | |
parent | clean-up shit, pull some of LT::Util into ltconfig object (diff) | |
download | wireguard-openbsd-c5c26eb03c45f620a78670019205d32c19b17de6.tar.xz wireguard-openbsd-c5c26eb03c45f620a78670019205d32c19b17de6.zip |
use the value actually passed to the function
Diffstat (limited to 'lib/libc/asr')
-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); |