summaryrefslogtreecommitdiff
path: root/src/ls.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ls.c')
-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);