From 83ba6762cc43d9db581b979bb5e3445669e46cc2 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 25 Nov 2024 18:33:56 +0100 Subject: Merging upstream version 2.0.3+dfsg (Closes: #923993, #1042533, #1045145). Signed-off-by: Daniel Baumann --- src/collectors/log2journal/log2journal-pattern.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/collectors/log2journal/log2journal-pattern.c') diff --git a/src/collectors/log2journal/log2journal-pattern.c b/src/collectors/log2journal/log2journal-pattern.c index 4b7e9026b..158ac1129 100644 --- a/src/collectors/log2journal/log2journal-pattern.c +++ b/src/collectors/log2journal/log2journal-pattern.c @@ -18,13 +18,13 @@ void search_pattern_cleanup(SEARCH_PATTERN *sp) { sp->match_data = NULL; } - txt_cleanup(&sp->error); + txt_l2j_cleanup(&sp->error); } static void pcre2_error_message(SEARCH_PATTERN *sp, int rc, int pos) { char msg[1024]; pcre2_get_error_in_buffer(msg, sizeof(msg), rc, pos); - txt_replace(&sp->error, msg, strlen(msg)); + txt_l2j_set(&sp->error, msg, strlen(msg)); } static inline bool compile_pcre2(SEARCH_PATTERN *sp) { -- cgit v1.2.3