diff options
| author | Pav Lucistnik <pav@FreeBSD.org> | 2007-05-12 13:36:13 +0000 |
|---|---|---|
| committer | Pav Lucistnik <pav@FreeBSD.org> | 2007-05-12 13:36:13 +0000 |
| commit | bae1345b9d7fab29e4db6f59b2e22e77bac41f8b (patch) | |
| tree | 9be86ca4e15825626ea2127acb6bde3455ae1956 /usr.bin/tip | |
| parent | 1cf95db60f5375454f7cc2a818c2444446d1e255 (diff) | |
Notes
Diffstat (limited to 'usr.bin/tip')
| -rw-r--r-- | usr.bin/tip/tip/acu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tip/tip/acu.c b/usr.bin/tip/tip/acu.c index efd8ca144610a..78786981f1138 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) { + while (cp != NULL && *cp) { phnum = cp; cp = strpbrk(cp, ","); - if (*cp != '\0') + if (cp != NULL && *cp != '\0') *cp++ = '\0'; if (strlen(phnum) == 0) |
