From f76325499abbd5e5212cbe7b479008e3bf1b1a96 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 4 Sep 2000 17:52:42 +0000 Subject: * path.cc (readlink): Check if buffer length is positive. Truncate output to buffer length. Don't terminate buffer with '\0'. --- winsup/cygwin/external.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/external.cc') diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc index 16303f56e..bfc4f1b25 100644 --- a/winsup/cygwin/external.cc +++ b/winsup/cygwin/external.cc @@ -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) -- cgit v1.2.3