summaryrefslogtreecommitdiff
path: root/src/date.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-06-28 16:29:42 +0000
committerJim Meyering <jim@meyering.net>2005-06-28 16:29:42 +0000
commitb64058f69ed42fc42ed16038c40d2384d2ae81a8 (patch)
treeed6ebbdf46cc2e11851ada140d77da9e6568f2f0 /src/date.c
parent783a13af776988387c227993cf222a91467f8cae (diff)
downloadcoreutils-b64058f69ed42fc42ed16038c40d2384d2ae81a8.tar.xz
(show_date): Use x2realloc on 1-byte base types, not x2nrealloc.
Diffstat (limited to 'src/date.c')
-rw-r--r--src/date.c2
1 files changed, 1 insertions, 1 deletions
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