Limit the size of the text
This commit is contained in:
parent
ddc46f889d
commit
4cf5819003
@ -119,6 +119,7 @@ group {
|
||||
state: "default" 0.0;
|
||||
align: 0.5 0.5;
|
||||
color: 255 255 255 0;
|
||||
max: 245 99999;
|
||||
|
||||
rel1 {
|
||||
to: "filelist_overlay";
|
||||
|
@ -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]))
|
||||
|
Loading…
Reference in New Issue
Block a user