summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorAndreas König <a.koenig@mind.de>2002-01-09 12:12:37 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2002-01-09 13:00:09 +0000
commita0804c9e85747bb3f67fb765c9f7a6e0cb9e18d1 (patch)
treef092cfc0538cfa03dd40652b6079c36e750d12a8 /regexec.c
parent302427c1e87e8d5309107114c84a87ad6357c6b9 (diff)
downloadperl-a0804c9e85747bb3f67fb765c9f7a6e0cb9e18d1.tar.gz
Re: Weird Malformed warning in bleadperl
Message-ID: <m3itabbzoq.fsf@anima.de> p4raw-id: //depot/perl@14148
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regexec.c b/regexec.c
index 06f0d8eb57..3e6ba65026 100644
--- a/regexec.c
+++ b/regexec.c
@@ -3879,7 +3879,7 @@ S_regrepeat(pTHX_ regnode *p, I32 max)
case SANY:
if (do_utf8) {
loceol = PL_regeol;
- while (scan < loceol) {
+ while (scan < loceol && hardcount < max) {
scan += UTF8SKIP(scan);
hardcount++;
}