Limit the size of the text
This commit is contained in:
@ -134,8 +134,12 @@ _cb_filelist_key_down(void *data, Evas *e __UNUSED__,
|
||||
char *text;
|
||||
|
||||
t = edje_object_part_text_get(gui, "filelist_overlay_text");
|
||||
|
||||
text = (t) ? (strdup(t)) : NULL;
|
||||
|
||||
if ((text) && (strlen(text) >= PATH_MAX))
|
||||
return;
|
||||
|
||||
if ((ek->string) && (*ek->string) && (!ek->string[1]))
|
||||
append = ek->string;
|
||||
else if ((ek->keyname) && (*ek->keyname) && (!ek->key[1]))
|
||||
|
Reference in New Issue
Block a user