libftdi-git Archives

Subject: A library to talk to FTDI chips branch, master, updated. v0.17-299-g5a7acb0

From: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
To: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
Date: Mon, 12 Dec 2011 15:54:17 +0100 (CET)
The branch, master has been updated
       via  5a7acb0743fe8d97756837a05c93a2bda4816154 (commit)
      from  24644c054ae5fe193587a0990c14f518d323210e (commit)


- Log -----------------------------------------------------------------
commit 5a7acb0743fe8d97756837a05c93a2bda4816154
Author: Andreas Helmcke <ahelmcke@xxxxxxxxxxxx>
Date:   Mon Dec 12 15:54:00 2011 +0100

    Add missing malloc in ftdi_eeprom

-----------------------------------------------------------------------

Summary of changes:
 ftdi_eeprom/main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

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);


hooks/post-receive
-- 
A library to talk to FTDI chips

--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread
  • A library to talk to FTDI chips branch, master, updated. v0.17-299-g5a7acb0, libftdi-git <=