commit 78ae29c7260fcbb4c9a138407954f57e05b07fbd
parent 03c59c1d581d2d4c61b5f8ac3ce60599534179c0
Author: Frederic Cambus <fred@statdns.com>
Date: Fri, 29 Jun 2018 21:05:50 +0200
Fix an off by one allocation
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/loaders/icedraw.c b/src/loaders/icedraw.c
@@ -41,7 +41,7 @@ void icedraw(struct input *inputFile, struct output *outputFile)
// dynamically allocated memory buffer for IDF data
unsigned char *idf_buffer, *temp;
- idf_buffer = malloc(sizeof (unsigned char));
+ idf_buffer = malloc(2);
int16_t idf_data, idf_data_length;