netstar pushed a commit to branch master.

http://git.enlightenment.org/apps/evisum.git/commit/?id=2a0148c496f128bceb81ae69e6a5d3a7db7cd8c2

commit 2a0148c496f128bceb81ae69e6a5d3a7db7cd8c2
Author: Alastair Poole <nets...@gmail.com>
Date:   Tue Jan 19 10:04:24 2021 +0000

    process: fix bad bug quick
---
 src/bin/system/process.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/bin/system/process.c b/src/bin/system/process.c
index 85f7fb8..4d9627d 100644
--- a/src/bin/system/process.c
+++ b/src/bin/system/process.c
@@ -192,7 +192,7 @@ _mem_size(Proc_Info *proc)
 static void
 _cmd_args(Proc_Info *p, char *name, size_t len)
 {
-   char buf[4096];
+   char buf[8192];
    int pid = p->pid;
 
    snprintf(buf, sizeof(buf), "/proc/%d/exe", pid);
@@ -216,11 +216,11 @@ _cmd_args(Proc_Info *p, char *name, size_t len)
                snprintf(name, len, "%s", ecore_file_file_get(buf));
 
              n = buf;
-             while (*n && (*n + 1))
+             while (n && *n && (*n + 1))
                {
                   eina_strbuf_append(b, n);
                   n = strchr(n, '\0') + 1;
-                  if (*n && (*n + 1)) eina_strbuf_append(b, " ");
+                  if (n && *n && (*n + 1)) eina_strbuf_append(b, " ");
                }
              p->arguments = eina_strbuf_release(b);
           }

-- 


Reply via email to