proc: clean up

This commit is contained in:
Alastair Poole 2020-04-26 01:55:47 +01:00
parent 51d3977a9d
commit 988105e4eb
1 changed files with 1 additions and 2 deletions

View File

@ -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';