e fm: Use correct string length when copying path.

Sometimes, trying to go to the parent directory wouldn’t work and end up showing some garbage. Unfortunately, the code ended up not NULL-ending the path, which made searching for the path separator buggy.
This commit is contained in:
Chidambar Zinnoury 2015-10-04 18:44:38 +02:00
parent 1ea9d73d33
commit 2a3742a52a
Notes: Mike Blumenkrantz 2015-10-04 13:07:22 -04:00
1 changed files with 1 additions and 1 deletions

View File

@ -1451,7 +1451,7 @@ e_fm2_parent_go(Evas_Object *obj)
char buf[PATH_MAX];
EFM_SMART_CHECK();
if (!sd->path) return;
path = memcpy(buf, sd->path, strlen(sd->path + 1));
path = memcpy(buf, sd->path, strlen(sd->path) + 1);
if ((p = strrchr(path, '/'))) *p = 0;
if (*path)
e_fm2_path_set(obj, sd->dev, path);