zmike pushed a commit to branch master.

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

commit b8fab9b8dd06599255d151ff0f1d84e35a5c222a
Author: Mike Blumenkrantz <[email protected]>
Date:   Wed Oct 9 13:19:36 2019 -0400

    efl_ui/selection_manager: be explicit with sizeof() usage
    
    Summary:
    ensure we don't have issues with portability and type sizes
    
    CID 1385141
    
    Reviewers: segfaultxavi
    
    Reviewed By: segfaultxavi
    
    Subscribers: cedric, #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D10201
---
 src/lib/elementary/efl_ui_selection_manager.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/elementary/efl_ui_selection_manager.c 
b/src/lib/elementary/efl_ui_selection_manager.c
index 3d8e311580..3c8ab8d9ab 100644
--- a/src/lib/elementary/efl_ui_selection_manager.c
+++ b/src/lib/elementary/efl_ui_selection_manager.c
@@ -1254,8 +1254,8 @@ 
_x11_efl_sel_manager_selection_set(Efl_Ui_Selection_Manager_Data *pd, Efl_Object
    sel->active = EINA_TRUE;
    sel->format = format;
 
-   sel->set(xwin, &sel, sizeof(&sel));
-   sel_debug("data: %p (%zu)", &sel, sizeof(&sel));
+   sel->set(xwin, &sel, sizeof(Sel_Manager_Selection *));
+   sel_debug("data: %p (%zu)", &sel, sizeof(Sel_Manager_Selection *));
 
    return _update_sel_lost_list(owner, type, seat_sel);
 }

-- 


Reply via email to