projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge ccdbg and altos sources into one giant repository
[fw/altos]
/
lib
/
ccdbg-hex.c
diff --git
a/lib/ccdbg-hex.c
b/lib/ccdbg-hex.c
index 86478da07b8c5f262c6adfb675cccf6aa11f2528..dfea915601a74e6258d8c6427b885eaf300870c5 100644
(file)
--- 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;
--nhexbytes;
if (nhexbytes != 0)
break;
-
+
switch (state) {
case read_length:
record = ccdbg_hex_alloc(hex);
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;
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)
sizeof (struct hex_file) +
srecord * sizeof (struct hex_record *));
if (!newhex)