diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-02-04 15:00:19 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-02-04 15:00:19 +0300 |
commit | 340e2fa50432585316b7828b4a696162a1920733 (patch) | |
tree | 173fc729a3e8538512dbd80341c02043e56bfd99 /winsup/cygwin/smallprint.cc | |
parent | b6cde8aa13e7ead6d3715e962fdff1e5fded2f35 (diff) |
* smallprint.cc (__small_vsprintf): Use HEAP_NOTHEAP for type.
* strfuncs.cc (sys_wcstombs_alloc): Guard use of ccalloc
to !__OUTSIDE_CYGWIN__ for use in cygserver.
(sys_mbstowcs_alloc): Ditto.
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 36cf6db88..f792dc084 100644 --- a/winsup/cygwin/smallprint.cc +++ b/winsup/cygwin/smallprint.cc @@ -197,7 +197,7 @@ __small_vsprintf (char *dst, const char *fmt, va_list ap) { char *tmp; - if (!sys_wcstombs_alloc (&tmp, PATH_MAX, us->Buffer, + if (!sys_wcstombs_alloc (&tmp, HEAP_NOTHEAP, us->Buffer, us->Length / sizeof (WCHAR))) { s = "invalid UNICODE_STRING"; |