summaryrefslogtreecommitdiffstats
path: root/maildrop/search.C
diff options
context:
space:
mode:
Diffstat (limited to 'maildrop/search.C')
-rw-r--r--maildrop/search.C9
1 files changed, 8 insertions, 1 deletions
diff --git a/maildrop/search.C b/maildrop/search.C
index a51c446..0823fbd 100644
--- a/maildrop/search.C
+++ b/maildrop/search.C
@@ -238,7 +238,14 @@ int Search::search_cb(const char *ptr, size_t cnt)
Buffer msg;
msg="Matching /";
- msg.append(search_expr);
+
+ {
+ Buffer cpy;
+
+ cpy += search_expr;
+ cpy += '\0';
+ msg.append(cpy);
+ }
msg.append("/ against ");
msg += current_line;
msg.pop(); // Trailing null byte.