illogict pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=2a3742a52ada09b75f8431d9a9941207c45f27d3
commit 2a3742a52ada09b75f8431d9a9941207c45f27d3 Author: Chidambar Zinnoury <[email protected]> Date: Sun Oct 4 18:44:38 2015 +0200 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. --- src/bin/e_fm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/e_fm.c b/src/bin/e_fm.c index e7661a0..34b173e 100644 --- a/src/bin/e_fm.c +++ b/src/bin/e_fm.c @@ -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); --
