From: Timo Sirainen Date: Sat, 21 Apr 2018 13:07:21 +0000 (+0300) Subject: lib-fts: fts-tokenizer-address - Cleanup NUL handling in parent_data X-Git-Tag: 2.3.4~248 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=265bdb725bf5f8426e6e596be25650787b11912f;p=thirdparty%2Fdovecot%2Fcore.git lib-fts: fts-tokenizer-address - Cleanup NUL handling in parent_data The end result is anyway that the token will be truncated at the first NUL. This change just makes the code a bit more understandable on where the truncation will happen. --- diff --git a/src/lib-fts/fts-tokenizer-address.c b/src/lib-fts/fts-tokenizer-address.c index 59b73244d4..9568e0f692 100644 --- a/src/lib-fts/fts-tokenizer-address.c +++ b/src/lib-fts/fts-tokenizer-address.c @@ -216,7 +216,7 @@ fts_tokenizer_address_update_parent(struct email_address_fts_tokenizer *tok, const unsigned char *data, size_t size) { if (tok->tokenizer.parent != NULL) - str_append_n(tok->parent_data, data, size); + str_append_data(tok->parent_data, data, size); } static void fts_tokenizer_email_address_reset(struct fts_tokenizer *_tok)