summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-09-22 08:31:00 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-09-22 08:31:00 +0900
commit8c28a70b4373d15dca8333dbd0d9a314dd941505 (patch)
tree5872680dc9c844baa2631665647acca8b6dd2d51
parentf4606d54eb2644a182a01aeef971fd53a0f53be9 (diff)
Revert "edje edje_embryo: use strncpy()."
This reverts commit 06bd8dcf330fe31891475c92aa340d4886f47e2b. just dismiss in coverity if the code is not actually wrong
-rw-r--r--src/lib/edje/edje_embryo.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/edje/edje_embryo.c b/src/lib/edje/edje_embryo.c
index c09c3ffa5a..bb46310ca8 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)
1553 } 1553 }
1554 else 1554 else
1555 { 1555 {
1556 int size = strlen(s) + 1; 1556 char *ss;
1557 char *ss = alloca(size); 1557
1558 strncpy(ss, s, size); 1558 ss = alloca(strlen(s) + 1);
1559 strcpy(ss, s);
1559 ss[params[3] - 1] = 0; 1560 ss[params[3] - 1] = 0;
1560 SETSTR(ss, params[2]); 1561 SETSTR(ss, params[2]);
1561 } 1562 }