summaryrefslogtreecommitdiff
path: root/games/bcd
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-01-17 07:14:33 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-01-17 07:14:33 +0000
commit3e150a880447536a0af58c395e5a857635e985d3 (patch)
tree867c3504f60ee9bfd2fa5db3dd66d5b3a1649ecd /games/bcd
parent8e78a24e2e89c03ac53bd758a1781c925fe7ab71 (diff)
r?index -> strr?chr
Diffstat (limited to 'games/bcd')
-rw-r--r--games/bcd/bcd.c3
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)