* path.cc (readlink): Check if buffer length is positive. Truncate output to
buffer length. Don't terminate buffer with '\0'.
This commit is contained in:
@@ -36,7 +36,7 @@ fillout_pinfo (pid_t pid, int winpid)
|
||||
i = 0;
|
||||
|
||||
memset (&ep, 0, sizeof ep);
|
||||
for (; i < pids.npids; )
|
||||
for (; i < pids.npids;)
|
||||
{
|
||||
DWORD thispid = pids[i++];
|
||||
if (!thispid)
|
||||
|
Reference in New Issue
Block a user