From 060a9b4fff088fc5929653f3e686d2b5d5cbcc5f Mon Sep 17 00:00:00 2001 From: Sebastian Dransfeld Date: Tue, 24 Jul 2007 17:51:45 +0000 Subject: [PATCH] buf isn't dynamic allocated. SVN revision: 30961 --- src/bin/e_actions.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/bin/e_actions.c b/src/bin/e_actions.c index b0593fb84..27b86cfd1 100644 --- a/src/bin/e_actions.c +++ b/src/bin/e_actions.c @@ -460,15 +460,16 @@ ACT_FN_GO(window_fullscreen) { 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)