From: Wilfried Goesgens Date: Sat, 5 May 2012 15:17:12 +0000 (+0200) Subject: SMTP-Client: alocate the Statusmessage big enough so we don't reallocate them later on. X-Git-Tag: v8.11~36 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=c153881665bf42b19c50f25554c099ff4ad7795a SMTP-Client: alocate the Statusmessage big enough so we don't reallocate them later on. --- diff --git a/citadel/modules/smtp/serv_smtpqueue.c b/citadel/modules/smtp/serv_smtpqueue.c index c0af5c0f5..2f7c3a590 100644 --- a/citadel/modules/smtp/serv_smtpqueue.c +++ b/citadel/modules/smtp/serv_smtpqueue.c @@ -397,7 +397,8 @@ void NewMailQEntry(OneQueItem *Item) if (Item->MailQEntries == NULL) Item->MailQEntries = NewHash(1, Flathash); - Item->Current->StatusMessage = NewStrBuf(); + /* alocate big buffer so we won't get problems reallocating later. */ + Item->Current->StatusMessage = NewStrBufPlain(NULL, SIZ); Item->Current->n = GetCount(Item->MailQEntries); Put(Item->MailQEntries, IKEY(Item->Current->n),