From 981d5ae9f308630c477def539a57ac9b51613718 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Mon, 17 May 2021 18:19:43 -0400 Subject: Allocate 1 + ParamCap matches in unscoop The IRC KICK matcher uses all 8 params, but there is always an extra match for the whole thing. --- unscoop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unscoop.c b/unscoop.c index 72bf65f..4779278 100644 --- a/unscoop.c +++ b/unscoop.c @@ -286,8 +286,8 @@ static void matchLine(const struct Format *format, const regex_t *regex, const char *line) { for (size_t i = 0; i < format->len; ++i) { const struct Matcher *matcher = &format->matchers[i]; - regmatch_t match[ParamCap]; - if (regexec(®ex[i], line, ParamCap, match, 0)) continue; + regmatch_t match[1 + ParamCap]; + if (regexec(®ex[i], line, 1 + ParamCap, match, 0)) continue; sqlite3_clear_bindings(insertName); for (int i = 1; i <= sqlite3_bind_parameter_count(insertEvent); ++i) { -- cgit 1.4.1
summary refs log tree commit diff
path: root/irc/pounce-palaver/pkg-descr (unfollow)
Commit message (Expand)Author
2021-03-24Import security/libretls from ports svnJune McEnroe
2021-03-08Add bubger portJune McEnroe
2021-03-08Update catsit to 1.3June McEnroe
2021-03-08Update imbox to 1.4June McEnroe
2021-02-09Update catgirl to 1.6June McEnroe
2021-02-08Update catsit to 1.2June McEnroe
2021-02-08Update pounce to 2.3June McEnroe
2021-02-04Update cgit-causal-agency to 8e4c63cJune McEnroe
2021-01-20Update cgit-causal-agency to 8a10aa5June McEnroe
2021-01-17Update cgit-causal-agencyJune McEnroe
2021-01-17Update scooper to 1.1June McEnroe
2021-01-17Update catgirl to 1.5 (BONUS WEBISODE)June McEnroe
2021-01-15Update litterbox to 1.7June McEnroe
2021-01-15Update pounce to 2.2June McEnroe
2021-01-15Update catgirl to 1.4June McEnroe
2020-12-28Replace cgit-patched with cgit-causal-agencyJune McEnroe
2020-12-18Add notemap portJune McEnroe
2020-12-15Update libretls to 3.3.1June McEnroe
2020-12-15Update catsit to 1.1June McEnroe
2020-12-15Update pounce to 2.1p1June McEnroe
2020-12-15Add imbox portJune McEnroe
2020-11-24Update pounce to 2.1June McEnroe
2020-11-24Update libretls to 3.3.0June McEnroe
2020-11-17Update catgirl to 1.3June McEnroe
2020-11-17Update libretls to 3.2.2June McEnroe
2020-09-29Update libretls to 3.2.1June McEnroe
2020-09-10Update catgirl to 1.2June McEnroe
2020-09-09Add pounce-palaver portJune McEnroe
2020-09-09Update pounce to 2.0June McEnroe
2020-09-09Update litterbox to 1.6June McEnroe
2020-08-23Add scooper portJune McEnroe
2020-08-23Add catsit portJune McEnroe
2020-08-13Update pounce to 1.4p2June McEnroe
2020-08-11Update pounce to 1.4p1June McEnroe
2020-08-10Add litterbox portJune McEnroe
2020-08-10Add missing USES=pkgconfig to pounceJune McEnroe