Enlightenment CVS committal

Author  : chaos
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src


Modified Files:
        entropy_config.c 


Log Message:
* Strdup the string - to prevent a double free

===================================================================
RCS file: /cvs/e/e17/proto/entropy/src/entropy_config.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- entropy_config.c    30 Mar 2006 04:14:39 -0000      1.17
+++ entropy_config.c    30 Mar 2006 04:16:21 -0000      1.18
@@ -7,7 +7,7 @@
 #include <Eet.h>
 #include <stdarg.h>
 
-#define ENTROPY_CONFIG_VERSION 11
+#define ENTROPY_CONFIG_VERSION 13
 
 static Entropy_Config* _Entropy_Config = NULL;
 
@@ -265,7 +265,7 @@
        va_end(args);
 
        binding->mime_type = strdup(mime_type);
-       binding->description = description;
+       binding->desc = strdup(description);
 
        return binding;
 }




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to