mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
fleaks.c: initialize command buffer before calling system (#904)
This commit is contained in:
parent
cc8c56e814
commit
c315315896
1 changed files with 2 additions and 1 deletions
|
@ -47,10 +47,11 @@ void CheckForFileLeaks(void) {
|
|||
}
|
||||
}
|
||||
if (gotsome) {
|
||||
char proc[64];
|
||||
*p++ = '\n';
|
||||
*p = 0;
|
||||
write(2, msg, p - msg);
|
||||
char proc[64];
|
||||
p = proc;
|
||||
p = stpcpy(p, "ls -hal /proc/");
|
||||
p = FormatInt32(p, getpid());
|
||||
p = stpcpy(p, "/fd");
|
||||
|
|
Loading…
Reference in a new issue