edje: let's be careful on the string content.

Fix CID 1193215.
This commit is contained in:
Cedric BAIL 2014-03-20 16:48:38 +09:00
parent 41a9e2149e
commit 15654012a6
1 changed files with 1 additions and 0 deletions

View File

@ -873,6 +873,7 @@ part_details(Evas_Object *ed, const char *ppart)
double value;
eina_strlcpy(state, str, sizeof(state)); /* bad states_list! :-( */
delim = strchr(state, ' ');
if (!delim) continue ;
*delim = '\0';
delim++;
value = strtod(delim, NULL);