Commit ba8f91fca3798773525f6c764e7f18377d5dd363
authorMichel Pollet <buserror@gmail.com>
Wed, 18 Apr 2012 09:47:55 +0000 (10:47 +0100)
committerMichel Pollet <buserror@gmail.com>
Wed, 18 Apr 2012 09:47:55 +0000 (10:47 +0100)
Still doesn't solve the problem of the avr assembler ihex being sparse,
but at least the problem is no longer int he ihex code.

Signed-off-by: Michel Pollet <buserror@gmail.com>
simavr/sim/run_avr.c

index c0ade486bc11b145f76239ad2a7f707f5a36cc9b..c50836cd83194f738a236b0cd436f3b5e16a7b1b 100644 (file)
@@ -107,8 +107,8 @@ int main(int argc, char *argv[])
                                        fprintf(stderr, "%s: -mcu and -freq are mandatory to load .hex files\n", argv[0]);
                                        exit(1);
                                }
-                               struct ihex_chunk_t chunk[4];
-                               int cnt = read_ihex_chunks(filename, chunk, 4);
+                               ihex_chunk_p chunk = NULL;
+                               int cnt = read_ihex_chunks(filename, &chunk);
                                if (cnt <= 0) {
                                        fprintf(stderr, "%s: Unable to load IHEX file %s\n", 
                                                argv[0], argv[pi]);