proc: clean up

edi-0.5
Alastair Poole 3 years ago
parent 51d3977a9d
commit 988105e4eb
  1. 3
      src/bin/process.c

@ -187,11 +187,10 @@ _cmd_args(Proc_Info *p, int pid, char *name, size_t len)
snprintf(name, len, "%s", ecore_file_file_get(line));
p->arguments = strdup(line);
}
fclose(f);
fclose(f);
}
}
char *end = strchr(name, ' ');
if (end) *end = '\0';

Loading…
Cancel
Save