diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-01-17 07:14:33 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-01-17 07:14:33 +0000 |
commit | 3e150a880447536a0af58c395e5a857635e985d3 (patch) | |
tree | 867c3504f60ee9bfd2fa5db3dd66d5b3a1649ecd /games/bcd | |
parent | 8e78a24e2e89c03ac53bd758a1781c925fe7ab71 (diff) |
r?index -> strr?chr
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) |