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:
fe2948b
)
edje: let's be more careful with string.
author
Cedric BAIL
<cedric.bail@samsung.com>
Thu, 20 Mar 2014 07:51:48 +0000
(16:51 +0900)
committer
Cedric BAIL
<cedric.bail@samsung.com>
Thu, 20 Mar 2014 07:51:48 +0000
(16:51 +0900)
Fix CID 1193213.
src/lib/edje/edje_edit.c
patch
|
blob
|
history
diff --git
a/src/lib/edje/edje_edit.c
b/src/lib/edje/edje_edit.c
index
ef7ade0
..
7f3d9da
100644
(file)
--- a/
src/lib/edje/edje_edit.c
+++ b/
src/lib/edje/edje_edit.c
@@
-7654,7
+7654,8
@@
_edje_generate_source_of_part(Evas_Object *obj, Edje_Part *ep, Eina_Strbuf *buf)
char state[512], *delim;
double value;
strncpy(state, data, sizeof(state) - 1); /* if we go over it, too bad.. the list of states may need to change to provide name and value separated */
- delim = strchr(state, ' ');
+ delim = strchr(state, ' ');
+ if (!delim) continue;
*delim = '\0';
delim++;
value = strtod(delim, NULL);