projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e972f9
)
commit 06bd8dcf330fe31891475c92aa340d4886f47e2b
14/88914/2
author
Hermet Park
<hermet@hermet.pe.kr>
Wed, 21 Sep 2016 06:04:39 +0000
(15:04 +0900)
committer
Hermet Park
<chuneon.park@samsung.com>
Wed, 21 Sep 2016 09:49:09 +0000
(
02:49
-0700)
Author: Hermet Park <hermet@hermet.pe.kr>
Date: Wed Sep 21 15:03:11 2016 +0900
edje edje_embryo: use strncpy().
This change is not meaningful but avoids an annoying coverity detection.
Change-Id: Ia5932564987b4c424794820de4347ae799bb450a
src/lib/edje/edje_embryo.c
patch
|
blob
|
history
diff --git
a/src/lib/edje/edje_embryo.c
b/src/lib/edje/edje_embryo.c
index
c20b2e4
..
f146a4d
100644
(file)
--- a/
src/lib/edje/edje_embryo.c
+++ b/
src/lib/edje/edje_embryo.c
@@
-1530,10
+1530,9
@@
_edje_embryo_fn_get_text(Embryo_Program *ep, Embryo_Cell *params)
}
else
{
- char *ss;
-
- ss = alloca(strlen(s) + 1);
- strcpy(ss, s);
+ int size = strlen(s) + 1;
+ char *ss = alloca(size);
+ strncpy(ss, s, size);
ss[params[3] - 1] = 0;
SETSTR(ss, params[2]);
}