X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=ao-tools%2Flib%2Fao-hex.c;h=c275baafb2c296b41c011f7872c3c1d4d34330f0;hb=95d39febfa9b6c6f2696fb1b47cf72aa808ec7c9;hp=73f3d7bed61dde5534fe03631ff62e4b563f49c9;hpb=08f13d3301bfcf9a5b9b566df4ffd4ed33f236d0;p=fw%2Faltos diff --git a/ao-tools/lib/ao-hex.c b/ao-tools/lib/ao-hex.c index 73f3d7be..c275baaf 100644 --- a/ao-tools/lib/ao-hex.c +++ b/ao-tools/lib/ao-hex.c @@ -565,7 +565,7 @@ ao_hex_file_create(struct ao_hex_image *image, struct ao_sym *symbols, int num_s /* Stick an EOF after the data */ - record = calloc(sizeof (struct ao_hex_record), 1); + record = calloc(1,sizeof (struct ao_hex_record) + 2); record->type = AO_HEX_RECORD_EOF; record->address = 0; record->length = 0;