forked from enlightenment/efl
edje: let's be more careful with string.
Fix CID 1193213.
This commit is contained in:
parent
fe2948be08
commit
f26b370584
|
@ -7655,6 +7655,7 @@ _edje_generate_source_of_part(Evas_Object *obj, Edje_Part *ep, Eina_Strbuf *buf)
|
||||||
double value;
|
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 */
|
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 = '\0';
|
||||||
delim++;
|
delim++;
|
||||||
value = strtod(delim, NULL);
|
value = strtod(delim, NULL);
|
||||||
|
|
Loading…
Reference in New Issue