git://developer.intra2net.com
/
libftdi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
24644c0
)
Add missing malloc in ftdi_eeprom
author
Andreas Helmcke
<ahelmcke@ela-soft.com>
Mon, 12 Dec 2011 14:54:00 +0000 (15:54 +0100)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Mon, 12 Dec 2011 14:54:00 +0000 (15:54 +0100)
ftdi_eeprom/main.c
patch
|
blob
|
blame
|
history
diff --git
a/ftdi_eeprom/main.c
b/ftdi_eeprom/main.c
index
b33266f
..
74ae7e2
100644
(file)
--- 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);