From 33f1b50fca9dc2767b81770ed1b31b88750113a7 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 12 Sep 2006 23:32:16 +0000 Subject: (print_user): Rewrite to avoid warning from GCC 4.1.1 with -Wall. --- src/who.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/who.c') 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 -- cgit v1.2.3-54-g00ecf