summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/dns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dns.c b/src/dns.c
index 74a765b33..4070c4905 100644
--- a/src/dns.c
+++ b/src/dns.c
@@ -744,7 +744,7 @@ dns_parse_labels (guint8 *in, gchar **target, guint8 **pos, struct rspamd_dns_re
p += *p + 1;
}
}
- *t = '\0';
+ *(t - 1) = '\0';
end:
if (offset < 0) {
offset = p - begin;