summaryrefslogtreecommitdiffstats
path: root/libexec/mknetid
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/mknetid')
-rw-r--r--libexec/mknetid/parse_group.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/mknetid/parse_group.c b/libexec/mknetid/parse_group.c
index 84cb991..75665dc 100644
--- a/libexec/mknetid/parse_group.c
+++ b/libexec/mknetid/parse_group.c
@@ -114,7 +114,7 @@ grscan(int search, int gid)
return(0);
bp = line;
/* skip lines that are too big */
- if (!index(line, '\n')) {
+ if (!strchr(line, '\n')) {
int ch;
while ((ch = getc(_gr_fp)) != '\n' && ch != EOF)
OpenPOWER on IntegriCloud