From 118473a4ed556552ba09d6f2fdfd88bed16d78a7 Mon Sep 17 00:00:00 2001 From: "bienvenu%netscape.com" Date: Sun, 14 Mar 1999 23:00:31 +0000 Subject: [PATCH] add comma separator between addresses, remove null byte in msg hdr yarn --- mailnews/db/msgdb/src/nsMsgHdr.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mailnews/db/msgdb/src/nsMsgHdr.cpp b/mailnews/db/msgdb/src/nsMsgHdr.cpp index 2b65f18b8083..1cc2a20b0dec 100644 --- a/mailnews/db/msgdb/src/nsMsgHdr.cpp +++ b/mailnews/db/msgdb/src/nsMsgHdr.cpp @@ -222,6 +222,9 @@ NS_IMETHODIMP nsMsgHdr::SetRecipientsArray(const char *names, const char *addres for (int i = 0; i < numAddresses; i++) { + if (i > 0) + allRecipients += ", "; + if (strlen(curName)) { allRecipients = curName; @@ -261,6 +264,9 @@ NS_IMETHODIMP nsMsgHdr::SetCCListArray(const char *names, const char *addresses, for (int i = 0; i < numAddresses; i++) { + if (i > 0) + allRecipients += ", "; + if (strlen(curName)) { allRecipients += curName; @@ -371,7 +377,7 @@ nsresult nsMsgHdr::SetStringColumn(const char *str, mdb_token token) struct mdbYarn yarn; yarn.mYarn_Buf = (void *) (str ? str : ""); yarn.mYarn_Size = PL_strlen((const char *) yarn.mYarn_Buf) + 1; - yarn.mYarn_Fill = yarn.mYarn_Size; + yarn.mYarn_Fill = yarn.mYarn_Size - 1; yarn.mYarn_Form = 0; yarn.mYarn_Grow = NULL; return m_mdbRow->AddColumn(m_mdb->GetEnv(), token, &yarn);