mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
(my_strftime): Update from FSF.
This commit is contained in:
1 parent
dc68d2454e
commit
fbb1fb519f
1 file changed
+2
-1
+2
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user