]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(print_long_format): NUL-terminate line of output.
authorJim Meyering <jim@meyering.net>
Sun, 5 Jan 1997 15:39:27 +0000 (15:39 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 5 Jan 1997 15:39:27 +0000 (15:39 +0000)
src/ls.c

index 6ff6b1c861a1181eb19d69062a989c2d0c5481f9..bd94629419bb3f8fc6fee5b621527f0172edb3e3 100644 (file)
--- 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);