Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/eet

Dir     : e17/libs/eet/src/lib


Modified Files:
        eet_data.c 


Log Message:


fix bug in eet decode of list and hashes of simple types. a bug waiting to
happen for sure.

===================================================================
RCS file: /cvs/e/e17/libs/eet/src/lib/eet_data.c,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -3 -r1.73 -r1.74
--- eet_data.c  17 Apr 2008 14:09:48 -0000      1.73
+++ eet_data.c  28 Apr 2008 03:04:26 -0000      1.74
@@ -2111,7 +2111,7 @@
                                 data_ret = NULL;
                                 if (IS_SIMPLE_TYPE(type))
                                   {
-                                     data_ret = calloc(1, 
eet_coder[type].size);
+                                     data_ret = calloc(1, eet_coder[type - 
1].size);
                                      if (data_ret)
                                        {
                                           _eet_freelist_add(data_ret);
@@ -2171,7 +2171,7 @@
                                 if (!echnk.name) goto error;
                                 if (IS_SIMPLE_TYPE(type))
                                   {
-                                     data_ret = calloc(1, 
eet_coder[type].size);
+                                     data_ret = calloc(1, eet_coder[type - 
1].size);
                                      if (data_ret)
                                        {
                                           _eet_freelist_add(data_ret);



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to