aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/tip
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/tip')
-rw-r--r--usr.bin/tip/tip/acu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tip/tip/acu.c b/usr.bin/tip/tip/acu.c
index 78786981f113..5d2cda624c02 100644
--- a/usr.bin/tip/tip/acu.c
+++ b/usr.bin/tip/tip/acu.c
@@ -100,10 +100,10 @@ con(void)
if ((acu = acutype(AT)) == NOACU)
return ("unknown ACU type");
if (*cp != '@') {
- while (cp != NULL && *cp) {
+ while (*cp) {
phnum = cp;
- cp = strpbrk(cp, ",");
- if (cp != NULL && *cp != '\0')
+ cp += strcspn(cp, ",");
+ if (*cp != '\0')
*cp++ = '\0';
if (strlen(phnum) == 0)