summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-01-05 15:39:27 +0000
committerJim Meyering <jim@meyering.net>1997-01-05 15:39:27 +0000
commit8ebfd37293d06b69998937535535258e3938a107 (patch)
tree068d3848dd3529224730987d2a94194a0e3a6164 /src
parentcb6351aa8249824a4aada8dc5abdc3c07f27e92c (diff)
downloadcoreutils-8ebfd37293d06b69998937535535258e3938a107.tar.xz
(print_long_format): NUL-terminate line of output.
Diffstat (limited to 'src')
-rw-r--r--src/ls.c1
1 files changed, 1 insertions, 0 deletions
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);