bin/108368 patch
Divacky Roman
xdivac02 at stud.fit.vutbr.cz
Wed Mar 14 18:30:14 UTC 2007
The following reply was made to PR bin/108368; it has been noted by GNATS.
From: Divacky Roman <xdivac02 at stud.fit.vutbr.cz>
To: FreeBSD-gnats-submit at freebsd.org
Cc:
Subject: bin/108368 patch
Date: Wed, 14 Mar 2007 19:02:27 +0100
here's a patch that fixes the coredump
Index: acu.c
===================================================================
RCS file: /home/ncvs/src/usr.bin/tip/tip/acu.c,v
retrieving revision 1.8
diff -u -r1.8 acu.c
--- acu.c 31 Aug 2006 14:14:29 -0000 1.8
+++ acu.c 7 Mar 2007 16:33:04 -0000
@@ -100,10 +100,10 @@
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)
More information about the freebsd-bugs
mailing list