From: Andreas Helmcke Date: Mon, 12 Dec 2011 14:54:00 +0000 (+0100) Subject: Add missing malloc in ftdi_eeprom X-Git-Tag: v1.0rc1~48 X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=commitdiff_plain;h=5a7acb0743fe8d97756837a05c93a2bda4816154 Add missing malloc in ftdi_eeprom --- diff --git a/ftdi_eeprom/main.c b/ftdi_eeprom/main.c index b33266f..74ae7e2 100644 --- a/ftdi_eeprom/main.c +++ b/ftdi_eeprom/main.c @@ -346,6 +346,7 @@ int main(int argc, char *argv[]) { if (filename != NULL && strlen(filename) > 0) { + eeprom_buf = malloc(my_eeprom_size); FILE *fp = fopen(filename, "rb"); fread(eeprom_buf, 1, my_eeprom_size, fp); fclose(fp);