Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2008-02-11 19:39:06 +0300
committerCorinna Vinschen <corinna@vinschen.de>2008-02-11 19:39:06 +0300
commit6542ddc3bef8af63123de03056018004c6b53e20 (patch)
treee6718d39295c7c756f33d8ab6ef9774c8d62cf8c /winsup/cygwin/dcrt0.cc
parent8eb981a37c6a4d64550c91611c80c7c0e2d08032 (diff)
* dcrt0.cc (dll_crt0_1): Fix typo in call to sys_wcstombs.
* miscfuncs.cc (next_char): Initialize ret to keep gcc happy.
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r--winsup/cygwin/dcrt0.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index 1c5464f92..0398388df 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -857,7 +857,7 @@ dll_crt0_1 (void *)
if (!__argc)
{
PWCHAR wline = GetCommandLineW ();
- size_t size = sys_wcstombs (NULL, size, wline);
+ size_t size = sys_wcstombs (NULL, 0, wline);
char *line = (char *) alloca (size);
sys_wcstombs (line, size, wline);