mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 01:14:53 +01:00
Add missing null terminator before using byte-array contents as string.
Thanks to valgrind for spotting this one.
This commit is contained in:
parent
7878175ed9
commit
27c01802c8
1 changed files with 1 additions and 0 deletions
|
@ -436,6 +436,7 @@ gen_terms_part (Xapian::TermGenerator term_gen,
|
|||
|
||||
g_object_unref (stream);
|
||||
|
||||
g_byte_array_append (byte_array, (guint8 *) "\0", 1);
|
||||
body = (char *) g_byte_array_free (byte_array, FALSE);
|
||||
|
||||
gen_terms_body_str (term_gen, body);
|
||||
|
|
Loading…
Reference in a new issue