From 8ebfd37293d06b69998937535535258e3938a107 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 5 Jan 1997 15:39:27 +0000 Subject: (print_long_format): NUL-terminate line of output. --- src/ls.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/ls.c b/src/ls.c index 6ff6b1c86..bd9462941 100644 --- a/src/ls.c +++ b/src/ls.c @@ -2139,6 +2139,7 @@ print_long_format (const struct fileinfo *f) locale-dependent names for the weekday (%a) and month (%b). */ p += strftime (p, TIMEBUF_SIZE, fmt, localtime (&when)); *p++ = ' '; + *p = '\0'; DIRED_INDENT (); FPUTS (bigbuf, stdout, p - bigbuf); -- cgit v1.2.3-70-g09d2