1 --- /Volumes/XDisk/tmp/Libc/stdio/FreeBSD/puts.c.orig 2004-03-10 01:15:38.000000000 -0800
2 +++ /Volumes/XDisk/tmp/Libc/stdio/FreeBSD/puts.c 2004-10-24 17:08:31.000000000 -0700
4 #include "libc_private.h"
7 +// 3340719: __puts_null__ is used if string is NULL. Shared by fputs.c
8 +__private_extern__ char const __puts_null__[] = "(null)";
11 * Write the given string to stdout, appending a newline.
17 - size_t c = strlen(s);
22 + // 3340719: __puts_null__ is used if s is NULL
25 iov[0].iov_base = (void *)s;
27 + iov[0].iov_len = c = strlen(s);
28 iov[1].iov_base = "\n";
30 uio.uio_resid = c + 1;