From: Michael Poole Date: Wed, 5 Apr 2006 00:24:50 +0000 (+0000) Subject: Fix backtracking bug after an escaped character. X-Git-Tag: v1.4.0-rc1~149 X-Git-Url: http://git.pk910.de/?p=srvx.git;a=commitdiff_plain;h=e2fe1e15b40bdd8facf559371ed085e097a6c814 Fix backtracking bug after an escaped character. src/tools.c (match_ircglob): Fix backtracking behavior when an escaped character did not match. git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-7 --- diff --git a/ChangeLog b/ChangeLog index 8e41512..a395c9e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,20 @@ # arch-tag: automatic-ChangeLog--srvx@srvx.net--2006/srvx--devo--1.3 # +2006-04-05 00:24:50 GMT Michael Poole patch-7 + + Summary: + Fix backtracking bug after an escaped character. + Revision: + srvx--devo--1.3--patch-7 + + src/tools.c (match_ircglob): Fix backtracking behavior when an escaped + character did not match. + + modified files: + ChangeLog src/tools.c + + 2006-04-05 00:11:31 GMT Michael Poole patch-6 Summary: diff --git a/src/tools.c b/src/tools.c index 6883b71..445006a 100644 --- a/src/tools.c +++ b/src/tools.c @@ -538,7 +538,7 @@ match_ircglob(const char *text, const char *glob) m++; /* allow escaping to force capitalization */ if (*m++ != *n++) - return 0; + goto backtrack; break; case '*': case '?': for (star_p = 0; ; m++) {