From: David du Colombier <0intro@gmail.com> Date: Wed, 17 Dec 2014 21:13:17 +0000 (+0100) Subject: fix copy/paste error X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=830b900f714162493ff3e9ef2bcdc12b9cc8b057;p=proto%2Flibregexp.git fix copy/paste error --- diff --git a/rregexec.c b/rregexec.c index 2ce2312..8af16b6 100644 --- a/rregexec.c +++ b/rregexec.c @@ -44,7 +44,7 @@ rregexec1(Reprog *progp, /* program to run */ switch(j->starttype) { case RUNE: p = runestrchr(s, j->startchar); - if(p == 0 || p == j->reol) + if(p == 0 || s == j->reol) return match; s = p; break;