diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2022-08-22 17:58:53 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2022-08-22 17:58:53 +0200 |
commit | c3e92052bbaa861d35646e7f9ceb813c8be26a64 (patch) | |
tree | e36bc0c2a1c1092604274356ce30ca0120d2f965 /winsup/cygwin/smallprint.cc | |
parent | 88e2f2aad115f9dc59e336d3d176ab88161db9e3 (diff) | |
download | newlib-c3e92052bbaa861d35646e7f9ceb813c8be26a64.zip newlib-c3e92052bbaa861d35646e7f9ceb813c8be26a64.tar.gz newlib-c3e92052bbaa861d35646e7f9ceb813c8be26a64.tar.bz2 |
Cygwin: smallprint.cc: Drop HEAP_ZERO_MEMORY
Leftover from testing.
Reported-by: Noel Grandin <noelgrandin@gmail.com>
Fixes: 07ec40170a32 ("Cygwin: smallprint.cc: Convert tmpbuf to lockless")
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/smallprint.cc')
-rw-r--r-- | winsup/cygwin/smallprint.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/smallprint.cc b/winsup/cygwin/smallprint.cc index 0e8c6d9..1e89f1c 100644 --- a/winsup/cygwin/smallprint.cc +++ b/winsup/cygwin/smallprint.cc @@ -62,7 +62,7 @@ public: operator WCHAR * () { if (!buf) - buf = (PWCHAR) HeapAlloc (GetProcessHeap (), HEAP_ZERO_MEMORY, + buf = (PWCHAR) HeapAlloc (GetProcessHeap (), 0, NT_MAX_PATH * sizeof (WCHAR)); return buf; } |