summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/dcrt0.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r--winsup/cygwin/dcrt0.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index acba8a46e..94f7bf8bf 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -953,9 +953,9 @@ dll_crt0_1 (void *)
if (!__argc)
{
PWCHAR wline = GetCommandLineW ();
- size_t size = sys_wcstombs (NULL, 0, wline) + 1;
+ size_t size = sys_wcstombs_no_path (NULL, 0, wline) + 1;
char *line = (char *) alloca (size);
- sys_wcstombs (line, size, wline);
+ sys_wcstombs_no_path (line, size, wline);
/* Scan the command line and build argv. Expand wildcards if not
called from another cygwin process. */