Skip to contentSkip to conversation

lib/parser: fix %% parsing

PATCH New Domen Puncer 1 participant 1 message Nov 7, 2004 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib/parser: fix %% parsing

Hi.

Code looks like it intended to parse "%%" in pattern string as "%". Fix it, so it really does that.

Compile and run tested.

lib/parser.c +1 -0
@@ -47,6 +47,7 @@ static int match_one(char *s, char *p, s
 		else if (*p == '%') {
 			if (*s++ != '%')
 				return 0;
+			p++;
 			continue;
 		}