forked from enlightenment/efl
edje: let's be careful on the string content.
Fix CID 1193215.
This commit is contained in:
parent
41a9e2149e
commit
15654012a6
|
@ -873,6 +873,7 @@ part_details(Evas_Object *ed, const char *ppart)
|
||||||
double value;
|
double value;
|
||||||
eina_strlcpy(state, str, sizeof(state)); /* bad states_list! :-( */
|
eina_strlcpy(state, str, sizeof(state)); /* bad states_list! :-( */
|
||||||
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