diff --git a/libc/stdio/fleaks.c b/libc/stdio/fleaks.c index 67244690a83..74865080f67 100644 --- a/libc/stdio/fleaks.c +++ b/libc/stdio/fleaks.c @@ -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");