diff options
author | Christopher Faylor <me@cgf.cx> | 2000-11-03 07:27:03 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-11-03 07:27:03 +0300 |
commit | bb5d559a73794be49fd63b97086bf7e982504399 (patch) | |
tree | 2ddb43199de5cf752e36a35cf06a51f7803f21dd /winsup/cygwin/cygheap.cc | |
parent | 6857eb1b3b79aa92498e6b9dded43ae4a8265669 (diff) |
* pinfo.cc (pinfo::init): Reverse order of setting status and pid info in an
execed process to avoid a race.
* sigproc.cc (wait_subproc): Print more info when a WFSO error occurs.
* automode.c: New file.
* syscalls.cc (close_all_files): Streamline slightly.
* cygheap.cc (ccalloc): Clear *entire* allocated array.
Diffstat (limited to 'winsup/cygwin/cygheap.cc')
-rw-r--r-- | winsup/cygwin/cygheap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc index e583c1efc..c6503c41b 100644 --- a/winsup/cygwin/cygheap.cc +++ b/winsup/cygwin/cygheap.cc @@ -260,7 +260,7 @@ ccalloc (cygheap_types x, DWORD n, DWORD size) MALLOC_CHECK; c = (cygheap_entry *) _cmalloc (sizeof_cygheap (n * size)); if (c) - memset (c->data, 0, size); + memset (c->data, 0, n * size); if (!c) system_printf ("ccalloc returned NULL"); return creturn (x, c, n); |