aboutsummaryrefslogtreecommitdiffstats
path: root/regex.c
diff options
context:
space:
mode:
authorAkinori Ito <aito@fw.ipsj.or.jp>2002-01-11 02:24:13 +0000
committerAkinori Ito <aito@fw.ipsj.or.jp>2002-01-11 02:24:13 +0000
commit687e4c8a22ead1eab6bcb29cb2ec30f04d69aa56 (patch)
treeb11b79117311a6da60778ccf63325ba004ab2fb5 /regex.c
parent[w3m-dev 02818] (diff)
downloadw3m-687e4c8a22ead1eab6bcb29cb2ec30f04d69aa56.tar.gz
w3m-687e4c8a22ead1eab6bcb29cb2ec30f04d69aa56.zip
2002-01-11 Akinori Ito <aito@fw.ipsj.or.jp>
* [w3m-dev 02819] * regex.c (RegexMatch): loop condition changed (from < to <= ) * regex.c (regmatch_iter): end condition changed (from >= to >) * search.c (forwardSearch): next search fix
Diffstat (limited to '')
-rw-r--r--regex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/regex.c b/regex.c
index 05a964c..4795f24 100644
--- a/regex.c
+++ b/regex.c
@@ -1,4 +1,4 @@
-/* $Id: regex.c,v 1.9 2002/01/10 16:11:32 ukai Exp $ */
+/* $Id: regex.c,v 1.10 2002/01/11 02:24:13 a-ito Exp $ */
/*
* regex: Regular expression pattern match library
*
@@ -265,7 +265,7 @@ RegexMatch(Regex *re, char *str, int len, int firstp)
len = strlen(str);
re->position = NULL;
ep = str + len;
- for (p = str; p < ep; p++) {
+ for (p = str; p <= ep; p++) {
lpos = NULL;
re->lposition = NULL;
for (r = re; r != NULL; r = r->alt_regex) {
@@ -554,7 +554,7 @@ regmatch_iter(struct MatchingContext1 *c,
c->re++;
c->firstp = 0;
}
- if (c->str >= c->end_p) {
+ if (c->str > c->end_p) {
return 0;
}
}