From 18a33fb59fd6afeb2aae93e4a139e231623b401f Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Sat, 10 Jul 2004 16:00:44 +0000 Subject: [PATCH] Perl_mode_from_discipline must update len. (else SEGV) Diagnosis and patch from clkao p4raw-id: //depot/perl@23076 --- doio.c | 1 + 1 file changed, 1 insertion(+) 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 } -- 1.8.3.1