mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-11-16 11:33:53 +01:00
commit bash-20190130 snapshot
This commit is contained in:
1 parent
ca5d21091b
commit
8a9718cfc9
17 files changed
+194
-40
No files matched your search
@@ -86,7 +86,7 @@ strftime_builtin (list)
|
||||
/* Now try to figure out how big the buffer should really be. strftime(3)
|
||||
will return the number of bytes placed in the buffer unless it's greater
|
||||
than MAXSIZE, in which case it returns 0. */
|
||||
for (n = 1; n < 4; n++)
|
||||
for (n = 1; n <= 8; n++)
|
||||
{
|
||||
tbuf = xrealloc (tbuf, tbsize * n);
|
||||
tsize = strftime (tbuf, tbsize * n, format, t);
|
||||
@@ -94,7 +94,8 @@ strftime_builtin (list)
|
||||
break;
|
||||
}
|
||||
|
||||
printf ("%s\n", tbuf);
|
||||
if (tsize)
|
||||
printf ("%s\n", tbuf);
|
||||
free (tbuf);
|
||||
|
||||
return (EXECUTION_SUCCESS);
|
||||
|
||||
Reference in new issue
Block a user