summaryrefslogtreecommitdiff
path: root/src/who.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-09-12 23:32:16 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-09-12 23:32:16 +0000
commit33f1b50fca9dc2767b81770ed1b31b88750113a7 (patch)
tree042807f144f89ab4259ba15d43555c6fa0d26bdf /src/who.c
parente1fb2a80bb2d4207910126837b79d4c5fd53d911 (diff)
downloadcoreutils-33f1b50fca9dc2767b81770ed1b31b88750113a7.tar.xz
(print_user): Rewrite to avoid warning from GCC 4.1.1 with -Wall.
Diffstat (limited to 'src/who.c')
-rw-r--r--src/who.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/who.c b/src/who.c
index 82921b0f5..211b08fb7 100644
--- a/src/who.c
+++ b/src/who.c
@@ -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