X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=ao-tools%2Flib%2Fao-hex.c;h=c275baafb2c296b41c011f7872c3c1d4d34330f0;hb=7b40813fdafce4ebd635aceb4c32355339a4d98d;hp=73f3d7bed61dde5534fe03631ff62e4b563f49c9;hpb=6f729ff46b2f4531db68f0af85e7e9fe0f6d1969;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;