X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=blobdiff_plain;f=src%2Fetpan%2Fimap-thread.c;h=d491a210c8676260f5e6845a37e371fc121e825b;hp=97dee7c1f8d182e0ba7440c8c3ff813bab3ac696;hb=e90e81720870f67ef45aeaae71898449d4b3e9b4;hpb=e1ca9855b2255e5c3122d8829b4385017b21f327 diff --git a/src/etpan/imap-thread.c b/src/etpan/imap-thread.c index 97dee7c1f..d491a210c 100644 --- a/src/etpan/imap-thread.c +++ b/src/etpan/imap-thread.c @@ -42,6 +42,8 @@ static gboolean thread_manager_event(GIOChannel * source, void imap_logger(int direction, const char * str, size_t size) { gchar buf[512]; + + memset(buf, 0, 512); strncpy(buf, str, size > 510 ? 510:size); buf[511] = '\0'; if (size < 511)