Use PATH_MAX.

No need to swallow the ilist twice.



SVN revision: 45726
This commit is contained in:
Christopher Michael 2010-01-30 02:01:15 +00:00
parent 2e4b78b724
commit 40c2032186
1 changed files with 3 additions and 7 deletions

View File

@ -889,7 +889,7 @@ _e_kbd_int_layout_parse(E_Kbd_Int *ki, const char *layout)
while (fgets(buf, sizeof(buf), f))
{
int len;
char str[4096];
char str[PATH_MAX];
if (!isok)
{
@ -930,7 +930,7 @@ _e_kbd_int_layout_parse(E_Kbd_Int *ki, const char *layout)
(!strcmp(str, "capslock")))
{
char *p;
char label[4096];
char label[PATH_MAX];
int xx;
if (sscanf(buf, "%*s %4000s", label) != 1) continue;
@ -1148,7 +1148,7 @@ _e_kbd_int_layouts_list_update(E_Kbd_Int *ki)
while (fgets(buf, sizeof(buf), f))
{
int len;
char str[4096];
char str[PATH_MAX];
if (!isok)
{
@ -1456,10 +1456,6 @@ _e_kbd_int_dictlist_up(E_Kbd_Int *ki)
ki->dictlist.ilist_obj);
edje_object_size_min_calc(ki->dictlist.base_obj, &mw, &mh);
edje_extern_object_min_size_set(ki->dictlist.ilist_obj, 0, 0);
edje_object_part_swallow(ki->dictlist.base_obj, "e.swallow.content",
ki->dictlist.ilist_obj);
e_zone_useful_geometry_get(ki->win->border->zone, &sx, &sy, &sw, &sh);
mw = ki->win->w;
if (mh > (sh - ki->win->h)) mh = sh - ki->win->h;