summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2016-10-12 10:42:47 +1100
committerTony Cook <tony@develop-help.com>2017-06-14 14:33:04 +1000
commite80af1fd276d83858d27742ea887415e3263960b (patch)
tree8bf05617a6b1cc7fbc0ac69f746c083866b22ca5 /util.c
parent9604fbf0722bd97ca6031a263c50ad52b6633db7 (diff)
downloadperl-e80af1fd276d83858d27742ea887415e3263960b.tar.gz
(perl 129183) don't treat \ as an escape in PATH for -S
Diffstat (limited to 'util.c')
-rw-r--r--util.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/util.c b/util.c
index 5bb0dfcffc..6bc2fe5dd2 100644
--- a/util.c
+++ b/util.c
@@ -3352,9 +3352,8 @@ Perl_find_script(pTHX_ const char *scriptname, bool dosearch,
if (len < sizeof tmpbuf)
tmpbuf[len] = '\0';
# else
- s = delimcpy(tmpbuf, tmpbuf + sizeof tmpbuf, s, bufend,
- ':',
- &len);
+ s = delimcpy_no_escape(tmpbuf, tmpbuf + sizeof tmpbuf, s, bufend,
+ ':', &len);
# endif
if (s < bufend)
s++;