aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/tip
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2007-05-12 23:29:33 +0000
committerPav Lucistnik <pav@FreeBSD.org>2007-05-12 23:29:33 +0000
commit67a09fffe1943695a3f78b547bdf15c2ec4a10ec (patch)
tree4be3f9cb7a6533f3afb673443f6a6408bee2c7b8 /usr.bin/tip
parentae7a150a686cbfaf36d60c4a7867eaf49f317227 (diff)
Notes
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)