diff --git a/winsup/cygwin/smallprint.cc b/winsup/cygwin/smallprint.cc index 0e8c6d9a9..1e89f1ce0 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; }