diff options
| author | Domen Puncer <domen@coderock.org> | 2004-11-10 21:50:25 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-11-10 21:50:25 -0800 |
| commit | 35752097c2fe607c41cdb984d645de67907d7b7c (patch) | |
| tree | a1dfe294d084b2ea95d237dc5ed933a394931a47 /lib/parser.c | |
| parent | 0cabd12dba7f51ecbdd711ff96cdf10fe6d7c9d1 (diff) | |
[PATCH] lib/parser: fix %% parsing
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>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'lib/parser.c')
| -rw-r--r-- | lib/parser.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/parser.c b/lib/parser.c index 761a57a6e9db..7ad2a48abc5e 100644 --- a/lib/parser.c +++ b/lib/parser.c @@ -47,6 +47,7 @@ static int match_one(char *s, char *p, substring_t args[]) else if (*p == '%') { if (*s++ != '%') return 0; + p++; continue; } |
