diff options
Diffstat (limited to 'lib/libc/net')
-rw-r--r-- | lib/libc/net/gethostbynis.c | 2 | ||||
-rw-r--r-- | lib/libc/net/getnetbynis.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/net/gethostbynis.c b/lib/libc/net/gethostbynis.c index 11de8ae..c0d5177 100644 --- a/lib/libc/net/gethostbynis.c +++ b/lib/libc/net/gethostbynis.c @@ -91,7 +91,7 @@ _gethostbynis(const char *name, char *map, int af, struct hostent *he, free(result); result = (char *)&ypbuf; - if ((cp = index(result, '\n'))) + if ((cp = strchr(result, '\n'))) *cp = '\0'; cp = strpbrk(result, " \t"); diff --git a/lib/libc/net/getnetbynis.c b/lib/libc/net/getnetbynis.c index 811e431..1dbed83 100644 --- a/lib/libc/net/getnetbynis.c +++ b/lib/libc/net/getnetbynis.c @@ -80,7 +80,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"); |