[PATCH] replace null terminator in string

Subject: [PATCH] replace null terminator in string

Date: Wed, 16 Mar 2011 21:55:50 -0400

To: notmuch

Cc:

From: James Vasile


In order to make the prior patch work for trailing whitespace, we also need this one.
---
 lib/thread.cc |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/thread.cc b/lib/thread.cc
index 7a816ea..54fde2b 100644
--- a/lib/thread.cc
+++ b/lib/thread.cc
@@ -291,6 +291,8 @@ rectify_whitespace (char *str)
       *curr = 32; //space
   while (curr++ < last);
 
+  *(last+1) = 0;
+
   return str;
 }
 
-- 
1.7.2.3

Thread: