summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2004-07-10 16:00:44 +0000
committerNicholas Clark <nick@ccl4.org>2004-07-10 16:00:44 +0000
commit4b84718feb33ee8acb8b06a2f14ce51dc6b54ef1 (patch)
tree49217edb9a1bf761d600a274a75e5c0c50e72cf6 /doio.c
parent09d958178d976e95be87719a60caba288f4a79fb (diff)
downloadperl-4b84718feb33ee8acb8b06a2f14ce51dc6b54ef1.tar.gz
Perl_mode_from_discipline must update len. (else SEGV)
Diagnosis and patch from clkao p4raw-id: //depot/perl@23076
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/doio.c b/doio.c
index 98e7204768..a551d05819 100644
--- a/doio.c
+++ b/doio.c
@@ -1172,6 +1172,7 @@ fail_discipline:
#ifndef PERLIO_LAYERS
Perl_croak(aTHX_ "IO layers (like '%.*s') unavailable", end-s, s);
#else
+ len -= end-s;
s = end;
#endif
}