lkml.org 
[lkml]   [2004]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] 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.


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;
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:07    [W:0.077 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site