Enlightenment CVS committal

Author  : englebass
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_actions.c 


Log Message:
buf isn't dynamic allocated.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_actions.c,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -3 -r1.102 -r1.103
--- e_actions.c 27 Jun 2007 10:57:53 -0000      1.102
+++ e_actions.c 24 Jul 2007 17:51:45 -0000      1.103
@@ -460,15 +460,16 @@
          {
             int v;
             char buf[32];
+            buf[0] = 0;
             if (sscanf(params, "%i %20s", &v, buf) == 2)
               {
                  if (v == 1)
                    {
-                     if (buf == 0 || *buf == '\0')
+                     if (*buf == '\0')
                        e_border_fullscreen(bd, e_config->fullscreen_policy);
-                     else if (! strcmp(buf, "resize"))
+                     else if (!strcmp(buf, "resize"))
                        e_border_fullscreen(bd, E_FULLSCREEN_RESIZE);
-                     else if (! strcmp(buf, "zoom"))
+                     else if (!strcmp(buf, "zoom"))
                        e_border_fullscreen(bd, E_FULLSCREEN_ZOOM);
                    }
                  else if (v == 0)



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to