raster pushed a commit to branch master.

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

commit 8c28a70b4373d15dca8333dbd0d9a314dd941505
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Thu Sep 22 08:31:00 2016 +0900

    Revert "edje edje_embryo: use strncpy()."
    
    This reverts commit 06bd8dcf330fe31891475c92aa340d4886f47e2b.
    
    just dismiss in coverity if the code is not actually wrong
---
 src/lib/edje/edje_embryo.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/lib/edje/edje_embryo.c b/src/lib/edje/edje_embryo.c
index c09c3ff..bb46310 100644
--- a/src/lib/edje/edje_embryo.c
+++ b/src/lib/edje/edje_embryo.c
@@ -1553,9 +1553,10 @@ _edje_embryo_fn_get_text(Embryo_Program *ep, Embryo_Cell 
*params)
           }
         else
           {
-             int size = strlen(s) + 1;
-             char *ss = alloca(size);
-             strncpy(ss, s, size);
+             char *ss;
+
+             ss = alloca(strlen(s) + 1);
+             strcpy(ss, s);
              ss[params[3] - 1] = 0;
              SETSTR(ss, params[2]);
           }

-- 


Reply via email to