raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=c746beb2023948f1a26022872e6d8386a3bc6317

commit c746beb2023948f1a26022872e6d8386a3bc6317
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Tue Apr 21 08:52:19 2015 +0900

    e - xsettings - calloc buffer since we leave 3 of 4 bytes unset
    
    the first 4 bytes is a msb/lsb thing for xsetttings - we ignore 3 of
    the 4 bytes. thus we should just calloc the whole buffer to ensure its 0
---
 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 42db400..1354535 100644
--- a/src/bin/e_xsettings.c
+++ b/src/bin/e_xsettings.c
@@ -334,7 +334,7 @@ _e_xsettings_apply(Settings_Manager *sm)
    EINA_LIST_FOREACH(settings, l, s)
      len += s->length;
 
-   pos = data = malloc(len);
+   pos = data = calloc(1, len);
    if (!data) return;
 
 #if __BYTE_ORDER == __LITTLE_ENDIAN

-- 


Reply via email to