(show_date): Use x2realloc on 1-byte base types, not x2nrealloc.

This commit is contained in:
Jim Meyering committed 2005-06-28 16:29:42 +00:00
1 parent 783a13af77
commit b64058f69e
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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
+1 -1
View File
@@ -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