From b64058f69ed42fc42ed16038c40d2384d2ae81a8 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 28 Jun 2005 16:29:42 +0000 Subject: (show_date): Use x2realloc on 1-byte base types, not x2nrealloc. --- src/date.c | 2 +- src/du.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/date.c b/src/date.c index c53bc6d17..14f5b6ff4 100644 --- a/src/date.c +++ b/src/date.c @@ -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 diff --git a/src/du.c b/src/du.c index 87ab4c422..a8e978e29 100644 --- a/src/du.c +++ b/src/du.c @@ -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 -- cgit v1.2.3-54-g00ecf