commit | 7b4cb1320928bdea2360cf36fc45c83700052d43 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jaxboe@fusionio.com> | Fri Jun 18 14:28:53 2010 +0200 |
committer | Jens Axboe <jaxboe@fusionio.com> | Fri Jun 18 14:28:53 2010 +0200 |
tree | 605e0a2835e3cb6fde50fb873ea05a1a5d545423 | |
parent | 936216f8cd8ae2261282453d82a2a8232bb4db45 [diff] [blame] |
parser: match on length of argument, not potential value Otherwise we match subset of a string, that doesn't always work well. Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
diff --git a/parse.c b/parse.c index ad2b1e3..869bcda 100644 --- a/parse.c +++ b/parse.c
@@ -299,7 +299,7 @@ if (!vp->ival || vp->ival[0] == '\0') continue; all_skipped = 0; - if (!strncmp(vp->ival, ptr, strlen(vp->ival))) { + if (!strncmp(vp->ival, ptr, strlen(ptr))) { ret = 0; if (o->roff1) { if (vp->or)