princeamd pushed a commit to branch ecore-1.7.

commit 878074734b7c6889ee8d5235f69d6cb62a62bdb4
Author: Carsten Haitzler <[email protected]>
Date:   Fri Feb 8 03:35:11 2013 +0000

    Backport: afd8a71 :: devilhorns: ummmm lets not segv and run allover the 
stack shall we? memset the size of memory we ALLOCATED!
    
    SVN revision: 83757
    
    Signed-off-by: Deon Thomas <[email protected]>
---
 src/lib/ecore_x/xlib/ecore_x_randr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/ecore_x/xlib/ecore_x_randr.c 
b/src/lib/ecore_x/xlib/ecore_x_randr.c
index 5fa6b07..ec016db 100644
--- a/src/lib/ecore_x/xlib/ecore_x_randr.c
+++ b/src/lib/ecore_x/xlib/ecore_x_randr.c
@@ -2307,7 +2307,7 @@ ecore_x_randr_move_crtcs(Ecore_X_Window root, const 
Ecore_X_Randr_Crtc *crtcs, i
         int nw = 0, nh = 0;
 
         info = alloca(ncrtc * sizeof(XRRCrtcInfo *));
-        memset(info, 0, ncrtc * sizeof(XRRCrtcInfo));
+        memset(info, 0, ncrtc * sizeof(XRRCrtcInfo *));
 
         ecore_x_randr_screen_size_range_get(root, NULL, NULL, &mw, &mh);
         ecore_x_randr_screen_current_size_get(root, &sw, &sh, NULL, NULL);

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to