aboutsummaryrefslogtreecommitdiffstats
path: root/regex.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-01-10 16:11:32 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-01-10 16:11:32 +0000
commit0cb8918cc3d3523c6c432dd866763957314806a4 (patch)
tree7f115882929e1538b5146b23aee81fb90cc02c11 /regex.c
parent[w3m-dev 02817] (diff)
downloadw3m-0cb8918cc3d3523c6c432dd866763957314806a4.tar.gz
w3m-0cb8918cc3d3523c6c432dd866763957314806a4.zip
[w3m-dev 02818]
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r--regex.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/regex.c b/regex.c
index aefa0a0..05a964c 100644
--- a/regex.c
+++ b/regex.c
@@ -1,4 +1,4 @@
-/* $Id: regex.c,v 1.8 2002/01/10 15:39:21 ukai Exp $ */
+/* $Id: regex.c,v 1.9 2002/01/10 16:11:32 ukai Exp $ */
/*
* regex: Regular expression pattern match library
*
@@ -554,6 +554,9 @@ regmatch_iter(struct MatchingContext1 *c,
c->re++;
c->firstp = 0;
}
+ if (c->str >= c->end_p) {
+ return 0;
+ }
}
c->lastpos = c->str;
#ifdef REGEX_DEBUG