projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eab4bc5
)
(show_date): Use x2nrealloc rather than xrealloc.
author
Jim Meyering
<jim@meyering.net>
Tue, 4 Nov 2003 09:27:54 +0000
(09:27 +0000)
committer
Jim Meyering
<jim@meyering.net>
Tue, 4 Nov 2003 09:27:54 +0000
(09:27 +0000)
src/date.c
patch
|
blob
|
history
diff --git
a/src/date.c
b/src/date.c
index
6d93338
..
aa4b6a6
100644
(file)
--- 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