discomfitor pushed a commit to branch master.

commit 6aad12eda89632113f23d3437a6cbd6aa19c3e85
Author: Mike Blumenkrantz <[email protected]>
Date:   Thu Apr 18 10:39:58 2013 +0100

    don't apply xsettings if no settings exist
    
    * fixes buffer overflow
---
 src/bin/e_xsettings.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/e_xsettings.c b/src/bin/e_xsettings.c
index 9f96d1e..3e9779b 100644
--- a/src/bin/e_xsettings.c
+++ b/src/bin/e_xsettings.c
@@ -144,7 +144,7 @@ _e_xsettings_activate(Settings_Manager *sm)
                                  ecore_x_current_time_get(), atom,
                                  sm->selection, 0, 0);
 
-   _e_xsettings_apply(sm);
+   if (settings) _e_xsettings_apply(sm);
 
    return 1;
 }

-- 

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter

Reply via email to