From e1c6989ecf7d49f524286f587b447b7b632de5c8 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 4 Nov 2003 09:27:54 +0000 Subject: (show_date): Use x2nrealloc rather than xrealloc. --- src/date.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/date.c b/src/date.c index 6d9333833..aa4b6a613 100644 --- a/src/date.c +++ b/src/date.c @@ -528,8 +528,7 @@ show_date (const char *format, struct timespec when) while (1) { int done; - out_length += 200; - out = xrealloc (out, out_length); + out = x2nrealloc (out, &out_length, sizeof *out); /* 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