diff options
Diffstat (limited to 'lib/ccdbg-hex.c')
-rw-r--r-- | lib/ccdbg-hex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ccdbg-hex.c b/lib/ccdbg-hex.c index 86478da0..dfea9156 100644 --- a/lib/ccdbg-hex.c +++ b/lib/ccdbg-hex.c @@ -147,7 +147,7 @@ ccdbg_hex_read_record(struct hex_input *input) --nhexbytes; if (nhexbytes != 0) break; - + switch (state) { case read_length: record = ccdbg_hex_alloc(hex); @@ -261,7 +261,7 @@ ccdbg_hex_file_read(FILE *file, char *name) goto bail; if (hex->nrecord == srecord) { srecord *= 2; - newhex = realloc(hex, + newhex = realloc(hex, sizeof (struct hex_file) + srecord * sizeof (struct hex_record *)); if (!newhex) |