Date: Tue, 7 Jan 2003 22:43:27 -0800 (PST) From: Peter Wemm <peter@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/slattach slattach.c Message-ID: <200301080643.h086hRTb040373@repoman.freebsd.org>
index | next in thread | raw e-mail
peter 2003/01/07 22:43:27 PST
Modified files:
sbin/slattach slattach.c
Log:
Change this:
#include <strings.h>
...
foo = (char *)strdup(...);
To:
#include <string.h>
foo = strdup(...);
because the former segfaults on an ia64 since there is no prototype
for strdup() in strings.h. Converting an "int" to a pointer is fatal.
Revision Changes Path
1.39 +4 -4 src/sbin/slattach/slattach.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301080643.h086hRTb040373>
