diff options
-rw-r--r-- | usr.bin/tip/tip/acu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tip/tip/acu.c b/usr.bin/tip/tip/acu.c index 7878698..5d2cda6 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) |