(my_strftime): Update from FSF.

This commit is contained in:
Jim Meyering committed 1998-09-27 12:45:33 +00:00
1 parent dc68d2454e
commit fbb1fb519f
1 file changed
+2 -1
+2 -1
View File
@@ -750,8 +750,9 @@ my_strftime (s, maxsize, format, tp)
*u++ = modifier;
*u++ = format_char;
*u = '\0';
ubuf[0] = '\1';
len = strftime (ubuf, sizeof ubuf, ufmt, tp);
if (len == 0)
if (len == 0 && ubuf[0] != '\0')
return 0;
cpy (len, ubuf);
}