public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] lib/parser: fix %% parsing
@ 2004-11-07 10:38 Domen Puncer
  0 siblings, 0 replies; only message in thread
From: Domen Puncer @ 2004-11-07 10:38 UTC (permalink / raw)
  To: lkml

Hi.

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

Compile and run tested.


Signed-off-by: Domen Puncer <domen@coderock.org>

--- c/lib/parser.c	2004-11-07 11:31:05.000000000 +0100
+++ a/lib/parser.c	2004-11-07 11:31:23.000000000 +0100
@@ -47,6 +47,7 @@ static int match_one(char *s, char *p, s
 		else if (*p == '%') {
 			if (*s++ != '%')
 				return 0;
+			p++;
 			continue;
 		}
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-11-07 10:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-07 10:38 [patch] lib/parser: fix %% parsing Domen Puncer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox