From: Jim Meyering Date: Sun, 5 Jan 1997 15:39:27 +0000 (+0000) Subject: (print_long_format): NUL-terminate line of output. X-Git-Tag: FILEUTILS-3_15~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8ebfd37293d06b69998937535535258e3938a107;p=thirdparty%2Fcoreutils.git (print_long_format): NUL-terminate line of output. --- diff --git a/src/ls.c b/src/ls.c index 6ff6b1c861..bd94629419 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);