summaryrefslogtreecommitdiffstats
path: root/freebsd/lib/libc/net/getnetbynis.c
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/lib/libc/net/getnetbynis.c')
-rw-r--r--freebsd/lib/libc/net/getnetbynis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/freebsd/lib/libc/net/getnetbynis.c b/freebsd/lib/libc/net/getnetbynis.c
index dd9f506a..7b561abc 100644
--- a/freebsd/lib/libc/net/getnetbynis.c
+++ b/freebsd/lib/libc/net/getnetbynis.c
@@ -82,7 +82,7 @@ _getnetbynis(const char *name, char *map, int af, struct netent *ne,
free(result);
result = (char *)&ypbuf;
- if ((cp = index(result, '\n')))
+ if ((cp = strchr(result, '\n')))
*cp = '\0';
cp = strpbrk(result, " \t");