Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/lib/canvas


Modified Files:
        evas_object_textblock.c 


Log Message:


oops - textblock badness with alloca

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/evas/src/lib/canvas/evas_object_textblock.c,v
retrieving revision 1.122
retrieving revision 1.123
diff -u -3 -r1.122 -r1.123
--- evas_object_textblock.c     1 Dec 2005 06:18:43 -0000       1.122
+++ evas_object_textblock.c     2 Dec 2005 03:20:56 -0000       1.123
@@ -858,7 +858,7 @@
          {
             char *ts, *p;
             
-            ts = alloca(strlen(param));
+            ts = alloca(strlen(param) + 1);
             strcpy(ts, param);
             p = strchr(ts, '%');
             *p = 0;
@@ -885,7 +885,7 @@
          {
             char *ts, *p;
             
-            ts = alloca(strlen(param));
+            ts = alloca(strlen(param) + 1);
             strcpy(ts, param);
             p = strchr(ts, '%');
             *p = 0;




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to