Re: [PATCH] _metadata_to_annotate(): Reserve space for terminating zero

2015-07-22 Thread ellie timoney
Hi Thomas, Thanks for the patch. I've applied it to the master and cyrus-imapd-2.5 branches. It'll be included in the next release of 2.5. Cheers, ellie On Tue, Jul 21, 2015, at 08:03 PM, Thomas Jarosch wrote: > Affects 2.5 and git HEAD, patch against git HEAD. > > cppcheck reported: > Dange

[PATCH] _metadata_to_annotate(): Reserve space for terminating zero

2015-07-21 Thread Thomas Jarosch
Affects 2.5 and git HEAD, patch against git HEAD. cppcheck reported: Dangerous usage of strncat - 3rd parameter is the maximum number of characters to append. --- imap/imapd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imap/imapd.c b/imap/imapd.c index 687c4af..c130a59 1