discomfitor pushed a commit to branch enlightenment-0.21.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=6062204900411bacbb2e182fb33e0670d08e0cce

commit 6062204900411bacbb2e182fb33e0670d08e0cce
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Sat Oct 28 23:43:50 2017 +0900

    e main - xdg runtime dir fixup - dont overwrite same buffer
    
    this path i never saw triggered before on linux because xdg runtime
    dir is set... but if it isn't... dont mess up the runtime dir path
    
    @fix
---
 src/bin/e_main.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/bin/e_main.c b/src/bin/e_main.c
index cceef2803..e17cd4e86 100644
--- a/src/bin/e_main.c
+++ b/src/bin/e_main.c
@@ -187,9 +187,11 @@ _xdg_data_dirs_augment(void)
         if (!dir) dir = "/tmp";
         else
           {
+             char buf2[4096];
+
              e_util_env_set("XDG_RUNTIME_DIR", dir);
-             snprintf(buf, sizeof(buf), "%s/.e-deleteme", dir);
-             ecore_file_mkdir(buf);
+             snprintf(buf2, sizeof(buf2), "%s/.e-deleteme", dir);
+             ecore_file_mkdir(buf2);
           }
      }
 

-- 


Reply via email to