projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ls: do not follow links with -s (closes bug 33),
[oweals/busybox.git]
/
coreutils
/
od_bloaty.c
diff --git
a/coreutils/od_bloaty.c
b/coreutils/od_bloaty.c
index a2eaf11d9a18d46c7f29ab81e6301f0895044762..eb45798577919b57b1a1fd8daa97650a580ef9e4 100644
(file)
--- a/
coreutils/od_bloaty.c
+++ b/
coreutils/od_bloaty.c
@@
-735,9
+735,9
@@
decode_format_string(const char *s)
assert(s != next);
s = next;
+ spec = xrealloc_vector(spec, 4, n_specs);
+ memcpy(&spec[n_specs], &tspec, sizeof(spec[0]));
n_specs++;
- spec = xrealloc(spec, n_specs * sizeof(*spec));
- memcpy(&spec[n_specs-1], &tspec, sizeof *spec);
}
}