diff options
| author | Sam Varshavchik | 2014-01-15 19:57:30 -0500 |
|---|---|---|
| committer | Sam Varshavchik | 2014-01-15 19:57:30 -0500 |
| commit | 906af33457c5822ede05b3fb9cb50e6c1e9c5486 (patch) | |
| tree | 31e39a2044790e52df7b2045f28e00ae7695971e /maildrop/search.C | |
| parent | d51a2d9d03338d2b1afa4b362b32b55631441d05 (diff) | |
| download | courier-libs-906af33457c5822ede05b3fb9cb50e6c1e9c5486.tar.bz2 | |
Fix garbled logging
Diffstat (limited to 'maildrop/search.C')
| -rw-r--r-- | maildrop/search.C | 9 |
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. |
