ryuan pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=72da0a2189928127ce40faf5a6a2a6ff07cbc362

commit 72da0a2189928127ce40faf5a6a2a6ff07cbc362
Author: Ryuan Choi <[email protected]>
Date:   Wed Jan 1 15:20:24 2014 +0900

    fileselector: Fixed wrong allocation in _custom_filter_append
    
    Reported as CID:1147526 by Coverity Scan
---
 src/lib/elc_fileselector.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elc_fileselector.c b/src/lib/elc_fileselector.c
index 35b8230..d1895bc 100644
--- a/src/lib/elc_fileselector.c
+++ b/src/lib/elc_fileselector.c
@@ -2024,7 +2024,7 @@ _custom_filter_append(Eo *obj, void *_pd, va_list *list)
    ff = _filter_add(sd, filter_name ? filter_name : "custom");
    ff->filter_type = ELM_FILESELECTOR_CUSTOM_FILTER;
 
-   ff->filter.custom = malloc(sizeof(Elm_Fileselector_Filter_Func));
+   ff->filter.custom = malloc(sizeof(Elm_Fileselector_Custom_Filter));
    ff->filter.custom->func = func;
    ff->filter.custom->data = data;
 

-- 


Reply via email to