diff options
Diffstat (limited to 'games/boggle/mkdict/mkdict.c')
-rw-r--r-- | games/boggle/mkdict/mkdict.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/games/boggle/mkdict/mkdict.c b/games/boggle/mkdict/mkdict.c index f60d9097a2f..c0f3948a3db 100644 --- a/games/boggle/mkdict/mkdict.c +++ b/games/boggle/mkdict/mkdict.c @@ -83,7 +83,7 @@ main(argc, argv) for (nwords = 1; fgets(buf[current], MAXWORDLEN + 1, stdin) != NULL; ++nwords) { - if ((p = index(buf[current], '\n')) == NULL) { + if ((p = strchr(buf[current], '\n')) == NULL) { fprintf(stderr, "mkdict: word too long: %s\n", buf[current]); while ((ch = getc(stdin)) != EOF && ch != '\n') |