Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_widget.c 


Log Message:
Just need an strdup here.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_widget.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -3 -r1.36 -r1.37
--- ewl_widget.c        13 Nov 2005 06:48:55 -0000      1.36
+++ ewl_widget.c        13 Nov 2005 07:27:58 -0000      1.37
@@ -548,12 +548,10 @@
         * The base appearance is used for determining the theme key of the
         * widget.
         */
-       w->appearance = (char *)malloc(al);
+       w->appearance = strdup(appearance);
        if (!w->appearance)
                DRETURN(DLEVEL_STABLE);
 
-       snprintf(w->appearance, al, "%s",  appearance);
-
        /*
         * Recreate the visible components of the widget if necessary.
         */




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to