summary refs log tree commit diff
path: root/time
diff options
context:
space:
mode:
Diffstat (limited to 'time')
-rw-r--r--time/strftime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/time/strftime.c b/time/strftime.c
index 3e81d2189b..be7891d14a 100644
--- a/time/strftime.c
+++ b/time/strftime.c
@@ -1236,7 +1236,7 @@ my_strftime (s, maxsize, format, tp ut_argument)
 	}
     }
 
-  if (p && i < maxsize)
+  if (p && maxsize != 0)
     *p = '\0';
   return i;
 }