diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2006-09-12 23:32:16 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2006-09-12 23:32:16 +0000 |
commit | 33f1b50fca9dc2767b81770ed1b31b88750113a7 (patch) | |
tree | 042807f144f89ab4259ba15d43555c6fa0d26bdf | |
parent | e1fb2a80bb2d4207910126837b79d4c5fd53d911 (diff) | |
download | coreutils-33f1b50fca9dc2767b81770ed1b31b88750113a7.tar.xz |
(print_user): Rewrite to avoid warning from GCC 4.1.1 with -Wall.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/who.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2006-09-12 Paul Eggert <eggert@cs.ucla.edu> + + * src/who.c (print_user): Rewrite to avoid warning from + GCC 4.1.1 with -Wall. + 2006-09-12 Jim Meyering <jim@meyering.net> * tests/mv/atomic: Check for specific strace output, rather than @@ -414,7 +414,7 @@ print_user (const STRUCT_UTMP *utmp_ent, time_t boottime) hostlen = 1; hoststr = xrealloc (hoststr, hostlen); } - stpcpy (hoststr, ""); + *hoststr = '\0'; } #endif |