diff options
Diffstat (limited to 'cygwin/cygwin.c')
-rw-r--r-- | cygwin/cygwin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cygwin/cygwin.c b/cygwin/cygwin.c index db1c426ea1..33ea4db16b 100644 --- a/cygwin/cygwin.c +++ b/cygwin/cygwin.c @@ -146,7 +146,7 @@ XS(Cygwin_cwd) if(items != 0) Perl_croak(aTHX_ "Usage: Cwd::cwd()"); - if((cwd = getcwd(NULL, 0))) { + if((cwd = getcwd(NULL, -1))) { ST(0) = sv_2mortal(newSVpv(cwd, 0)); safesysfree(cwd); XSRETURN(1); |