Skip site navigation (1)Skip section navigation (2)
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>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301080643.h086hRTb040373>