From: Nicholas Clark Date: Sat, 10 Jul 2004 16:00:44 +0000 (+0000) Subject: Perl_mode_from_discipline must update len. (else SEGV) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=18a33fb59fd6afeb2aae93e4a139e231623b401f;p=p5sagit%2Fp5-mst-13.2.git Perl_mode_from_discipline must update len. (else SEGV) Diagnosis and patch from clkao p4raw-id: //depot/perl@23076 --- diff --git a/doio.c b/doio.c index 98e7204..a551d05 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 }