summaryrefslogtreecommitdiffstats
path: root/src/collectors/log2journal/log2journal-pattern.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-25 17:33:56 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-25 17:34:10 +0000
commit83ba6762cc43d9db581b979bb5e3445669e46cc2 (patch)
tree2e69833b43f791ed253a7a20318b767ebe56cdb8 /src/collectors/log2journal/log2journal-pattern.c
parentReleasing debian version 1.47.5-1. (diff)
downloadnetdata-83ba6762cc43d9db581b979bb5e3445669e46cc2.tar.xz
netdata-83ba6762cc43d9db581b979bb5e3445669e46cc2.zip
Merging upstream version 2.0.3+dfsg (Closes: #923993, #1042533, #1045145).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/collectors/log2journal/log2journal-pattern.c')
-rw-r--r--src/collectors/log2journal/log2journal-pattern.c4
1 files changed, 2 insertions, 2 deletions
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) {