projects
/
p5sagit/p5-mst-13.2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
[ID 20001122.002] [PATCH 5.7.0@7795] two small patches to perlbug
[p5sagit/p5-mst-13.2.git]
/
cygwin
/
cygwin.c
diff --git
a/cygwin/cygwin.c
b/cygwin/cygwin.c
index
db1c426
..
33ea4db
100644
(file)
--- 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);