summaryrefslogtreecommitdiffstats
path: root/sub/filter_regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'sub/filter_regex.c')
-rw-r--r--sub/filter_regex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sub/filter_regex.c b/sub/filter_regex.c
index 8e299918ce..1d29ea1ac1 100644
--- a/sub/filter_regex.c
+++ b/sub/filter_regex.c
@@ -64,7 +64,7 @@ static struct demux_packet *rf_filter(struct sd_filter *ft,
bool drop = false;
if (ft->opts->rf_plain)
- sd_ass_to_plaintext(text, strlen(text), text);
+ sd_ass_to_plaintext(&text, text);
for (int n = 0; n < p->num_regexes; n++) {
int err = regexec(&p->regexes[n], text, 0, NULL, 0);