X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=miniexpect.c;h=eca8e9a9280a11a8f9a3dc79f1736d8d3460d017;hb=cdd5f93d5c8b51d8e80e2ccf45f1f4a90c79f6a6;hp=fef03fddbe5755e5746f8bf0ed12dca16405a8a9;hpb=16d4443d47b7a6943ae25cdfad57a5645d7a063c;p=miniexpect.git diff --git a/miniexpect.c b/miniexpect.c index fef03fd..eca8e9a 100644 --- a/miniexpect.c +++ b/miniexpect.c @@ -208,6 +208,10 @@ mexp_expect (mexp_h *h, const mexp_regexp *regexps, int *ovector, int ovecsize) time (&start_t); /* Clear the read buffer. */ + /* XXX This is possibly incorrect because it throws away inputs that + * may not have been matched yet. A better idea is to record the + * end of the previous match and only throw that away. + */ clear_buffer (h); for (;;) {