cedric pushed a commit to branch master.

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

commit 78eb21296c63ca5cda88fa36ba2266132cad8803
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Mon Nov 30 14:10:35 2015 -0800

    eina: fix bad use of calloc.
---
 src/lib/eina/eina_strbuf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/eina/eina_strbuf.c b/src/lib/eina/eina_strbuf.c
index 1470805..81ab30a 100644
--- a/src/lib/eina/eina_strbuf.c
+++ b/src/lib/eina/eina_strbuf.c
@@ -213,7 +213,7 @@ eina_strbuf_substr_get(Eina_Strbuf *buf, size_t pos, size_t 
len)
    if ((!buf) || ((pos + len) > buf->len))
       return NULL;
 
-   str = calloc(0, len + 1);
+   str = calloc(1, len + 1);
 
    strncpy(str,((char *)(buf->buf)) + pos, len);
 

-- 


Reply via email to