[PATCH] replace null terminator in string
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
[PATCH] replace null terminator in string
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 ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch