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:
783a13a
)
(show_date): Use x2realloc on 1-byte base types, not x2nrealloc.
author
Jim Meyering
<jim@meyering.net>
Tue, 28 Jun 2005 16:29:42 +0000
(16:29 +0000)
committer
Jim Meyering
<jim@meyering.net>
Tue, 28 Jun 2005 16:29:42 +0000
(16:29 +0000)
src/date.c
patch
|
blob
|
history
src/du.c
patch
|
blob
|
history
diff --git
a/src/date.c
b/src/date.c
index
c53bc6d
..
14f5b6f
100644
(file)
--- 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 = x2
nrealloc (out, &out_length, sizeof *out
);
+ out = x2
realloc (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
87ab4c4
..
a8e978e
100644
(file)
--- a/
src/du.c
+++ b/
src/du.c
@@
-430,7
+430,7
@@
show_date (const char *format, time_t when, int nsec)
do
{
- out = x2
nrealloc (out, &out_length, sizeof *out
);
+ out = x2
realloc (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