diff options
author | Karl Williamson <khw@cpan.org> | 2021-09-13 11:43:20 -0600 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2023-02-08 15:57:31 +0800 |
commit | bba8d7cfa7a094d55326d7a9cfebd73fb8ab2a35 (patch) | |
tree | a8d897626a4a76c19a571168efe21c73b901a69d /cygwin | |
parent | d7c2c45e0afe114a6fc55207b26d268ec4affea6 (diff) | |
download | perl-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.c | 2 |
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)); |