summaryrefslogtreecommitdiffstats
path: root/login-utils/last.c
diff options
context:
space:
mode:
authorKarel Zak2014-03-19 13:25:45 +0100
committerKarel Zak2014-04-03 12:29:16 +0200
commit78a3b0af301b219c501f2c45d4bdcd65aed7f7a6 (patch)
tree88288eaf5e86c369aa2513b32d79d7d2b2622b02 /login-utils/last.c
parentlibsmartcols: add lines (diff)
downloadkernel-qcow2-util-linux-78a3b0af301b219c501f2c45d4bdcd65aed7f7a6.tar.gz
kernel-qcow2-util-linux-78a3b0af301b219c501f2c45d4bdcd65aed7f7a6.tar.xz
kernel-qcow2-util-linux-78a3b0af301b219c501f2c45d4bdcd65aed7f7a6.zip
include/carefulputc: cleanup and add fputs_{quoted,nonblank}()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'login-utils/last.c')
-rw-r--r--login-utils/last.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/login-utils/last.c b/login-utils/last.c
index e4a849776..5122f8e4b 100644
--- a/login-utils/last.c
+++ b/login-utils/last.c
@@ -528,7 +528,7 @@ static int list(const struct last_control *ctl, struct utmp *p, time_t t, int wh
* Print out "final" string safely.
*/
for (s = final; *s; s++)
- carefulputc(*s, stdout, '*');
+ fputc_careful(*s, stdout, '*');
if (len < 0 || (size_t)len >= sizeof(final))
putchar('\n');