summaryrefslogtreecommitdiff
path: root/src/lib/edje/edje_embryo.c
diff options
context:
space:
mode:
authorHermet Park <hermet@hermet.pe.kr>2016-09-21 15:03:11 +0900
committerHermet Park <hermet@hermet.pe.kr>2016-09-21 15:03:11 +0900
commit06bd8dcf330fe31891475c92aa340d4886f47e2b (patch)
tree06d41e78c2eb967869293da50d7c3fff8f63328d /src/lib/edje/edje_embryo.c
parentab1a72f5e7df6fe0adef54bdcddd9867a2ebe3a6 (diff)
edje edje_embryo: use strncpy().
This change is not meaningful but avoids an annoying coverity detection.
Diffstat (limited to 'src/lib/edje/edje_embryo.c')
-rw-r--r--src/lib/edje/edje_embryo.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/edje/edje_embryo.c b/src/lib/edje/edje_embryo.c
index bb46310ca8..c09c3ffa5a 100644
--- a/src/lib/edje/edje_embryo.c
+++ b/src/lib/edje/edje_embryo.c
@@ -1553,10 +1553,9 @@ _edje_embryo_fn_get_text(Embryo_Program *ep, Embryo_Cell *params)
1553 } 1553 }
1554 else 1554 else
1555 { 1555 {
1556 char *ss; 1556 int size = strlen(s) + 1;
1557 1557 char *ss = alloca(size);
1558 ss = alloca(strlen(s) + 1); 1558 strncpy(ss, s, size);
1559 strcpy(ss, s);
1560 ss[params[3] - 1] = 0; 1559 ss[params[3] - 1] = 0;
1561 SETSTR(ss, params[2]); 1560 SETSTR(ss, params[2]);
1562 } 1561 }