Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/plugins


Modified Files:
        ewl_io_manager_text_c_plugin.c 


Log Message:
don't modify const strings

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/plugins/ewl_io_manager_text_c_plugin.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ewl_io_manager_text_c_plugin.c      6 Feb 2007 21:13:08 -0000       1.6
+++ ewl_io_manager_text_c_plugin.c      6 Feb 2007 23:14:02 -0000       1.7
@@ -118,6 +118,7 @@
 ewl_io_manager_plugin_string_read(const char *string)
 {
        Ewl_Widget *ret = NULL;
+       char *txt;
 
        DENTER_FUNCTION(DLEVEL_STABLE);
 
@@ -126,7 +127,9 @@
 
        ret = ewl_text_new();
        ewl_text_font_set(EWL_TEXT(ret), "ewl/monospace");
-       text_set(EWL_TEXT(ret), string);
+       txt = strdup(string);
+       text_set(EWL_TEXT(ret), txt);
+       free(txt);
 
        DRETURN_PTR(ret, DLEVEL_STABLE);
 }



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to