mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
(show_date): Use x2realloc on 1-byte base types, not x2nrealloc.
This commit is contained in:
1 parent
783a13af77
commit
b64058f69e
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -532,7 +532,7 @@ show_date (const char *format, struct timespec when)
|
||||
while (1)
|
||||
{
|
||||
bool done;
|
||||
out = x2nrealloc (out, &out_length, sizeof *out);
|
||||
out = x2realloc (out, &out_length);
|
||||
|
||||
/* Mark the first byte of the buffer so we can detect the case
|
||||
of nstrftime producing an empty string. Otherwise, this loop
|
||||
|
||||
@@ -430,7 +430,7 @@ show_date (const char *format, time_t when, int nsec)
|
||||
|
||||
do
|
||||
{
|
||||
out = x2nrealloc (out, &out_length, sizeof *out);
|
||||
out = x2realloc (out, &out_length);
|
||||
|
||||
/* Mark the first byte of the buffer so we can detect the case
|
||||
of nstrftime producing an empty string. Otherwise, this loop
|
||||
|
||||
Reference in new issue
Block a user