diff options
Diffstat (limited to 'coreutils/od_bloaty.c')
-rw-r--r-- | coreutils/od_bloaty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/od_bloaty.c b/coreutils/od_bloaty.c index a2eaf11d9..eb4579857 100644 --- a/coreutils/od_bloaty.c +++ b/coreutils/od_bloaty.c | |||
@@ -735,9 +735,9 @@ decode_format_string(const char *s) | |||
735 | 735 | ||
736 | assert(s != next); | 736 | assert(s != next); |
737 | s = next; | 737 | s = next; |
738 | spec = xrealloc_vector(spec, 4, n_specs); | ||
739 | memcpy(&spec[n_specs], &tspec, sizeof(spec[0])); | ||
738 | n_specs++; | 740 | n_specs++; |
739 | spec = xrealloc(spec, n_specs * sizeof(*spec)); | ||
740 | memcpy(&spec[n_specs-1], &tspec, sizeof *spec); | ||
741 | } | 741 | } |
742 | } | 742 | } |
743 | 743 | ||