stefan pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=37536054042df43b1756a98231ca5253c799f057

commit 37536054042df43b1756a98231ca5253c799f057
Author: Stefan Schmidt <ste...@osg.samsung.com>
Date:   Mon Nov 30 21:57:58 2015 +0100

    test: correct argument order for calloc()
    
    calloc() expects count first and the actual size to allocate as second
    argument. Say Thank You to smatch for finding this issues for us.
---
 src/bin/test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/test.c b/src/bin/test.c
index c1539d5..cb602f7 100644
--- a/src/bin/test.c
+++ b/src/bin/test.c
@@ -388,7 +388,7 @@ _space_removed_string_get(const char *name)
    char *ret;
 
    len = strlen(name);
-   ret = calloc(sizeof(char), len + 1);
+   ret = calloc(len + 1, sizeof(char));
 
    while (name[i])
      {

-- 


Reply via email to