diff options
Diffstat (limited to 'games/bcd')
-rw-r--r-- | games/bcd/bcd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/games/bcd/bcd.c b/games/bcd/bcd.c index 869467fccb7..9835a921f94 100644 --- a/games/bcd/bcd.c +++ b/games/bcd/bcd.c @@ -155,10 +155,9 @@ printcard(str) static char rowchars[] = " 123456789"; register int i, row; register char *p; - char *index(); /* ruthlessly remove newlines and truncate at 48 characters. */ - if ((p = index(str, '\n'))) + if ((p = strchr(str, '\n'))) *p = '\0'; if (strlen(str) > COLUMNS) |