about summary refs log tree commit diff
path: root/time/strftime.c
diff options
context:
space:
mode:
Diffstat (limited to 'time/strftime.c')
-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;
 }