diff options
| author | Carl Worth <cworth@cworth.org> | 2009-10-14 15:55:07 -0700 |
|---|---|---|
| committer | Carl Worth <cworth@cworth.org> | 2009-10-14 15:55:07 -0700 |
| commit | 27c01802c89fb825c144ead13de0f6d6437ba997 (patch) | |
| tree | e25c7d365dec9c404db1369d2f6b740cf6760864 | |
| parent | 7878175ed943351c39ce5cebc6f10939b2b88422 (diff) | |
Add missing null terminator before using byte-array contents as string.
Thanks to valgrind for spotting this one.
| -rw-r--r-- | notmuch-index-message.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/notmuch-index-message.cc b/notmuch-index-message.cc index 852f4e16..3bb62f65 100644 --- a/notmuch-index-message.cc +++ b/notmuch-index-message.cc @@ -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); |
