summaryrefslogtreecommitdiff
path: root/cygwin
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2021-09-13 11:43:20 -0600
committerYves Orton <demerphq@gmail.com>2023-02-08 15:57:31 +0800
commitbba8d7cfa7a094d55326d7a9cfebd73fb8ab2a35 (patch)
treea8d897626a4a76c19a571168efe21c73b901a69d /cygwin
parentd7c2c45e0afe114a6fc55207b26d268ec4affea6 (diff)
downloadperl-bba8d7cfa7a094d55326d7a9cfebd73fb8ab2a35.tar.gz
cygwin.c: Use SvPVx in both places
One function uses this form; the parallel function doesn't. Not having delved into the details, the 'x' form is safer, so should be used in the same situation in both functions.
Diffstat (limited to 'cygwin')
-rw-r--r--cygwin/cygwin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cygwin/cygwin.c b/cygwin/cygwin.c
index f9d25b4557..dddeac5407 100644
--- a/cygwin/cygwin.c
+++ b/cygwin/cygwin.c
@@ -276,7 +276,7 @@ XS(XS_Cygwin_win_to_posix_path)
if (items < 1 || items > 2)
Perl_croak(aTHX_ "Usage: Cygwin::win_to_posix_path(pathname, [absolute])");
- src_path = SvPV(ST(0), len);
+ src_path = SvPVx(ST(0), len);
if (items == 2)
absolute_flag = SvTRUE(ST(1));