summaryrefslogtreecommitdiffstats
path: root/usr.bin/tset/wrterm.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/tset/wrterm.c')
-rw-r--r--usr.bin/tset/wrterm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tset/wrterm.c b/usr.bin/tset/wrterm.c
index e258e16..77751fa 100644
--- a/usr.bin/tset/wrterm.c
+++ b/usr.bin/tset/wrterm.c
@@ -56,7 +56,7 @@ wrtermcap(char *bp)
char *t, *sep;
/* Find the end of the terminal names. */
- if ((t = index(bp, ':')) == NULL)
+ if ((t = strchr(bp, ':')) == NULL)
errx(1, "termcap names not colon terminated");
*t++ = '\0';
OpenPOWER on IntegriCloud