fix (no subject) for blank message subjects
authorMatt <matt@uncensored.citadel.org>
Mon, 15 Dec 2008 05:17:30 +0000 (05:17 +0000)
committerMatt <matt@uncensored.citadel.org>
Mon, 15 Dec 2008 05:17:30 +0000 (05:17 +0000)
webcit/messages.c

index 008dd74eb0acf92d2887a3859b611b930c435cc8..c407bfba7e7968d7f76d4b2dbc92759d20db6cdf 100644 (file)
@@ -440,7 +440,7 @@ int load_msg_ptrs(char *servcmd, int with_headers)
                        Msg->subj = NewStrBufPlain(NULL, StrLength(Buf));
                        StrBufExtract_token(Buf2,  Buf, 5, '|');
                        if (StrLength(Buf2) == 0)
-                               StrBufAppendBufPlain(Msg->subj, _("(no subj)"), 0, -1);
+                               StrBufAppendBufPlain(Msg->subj, _("(no subj)"), -1,0);
                        else {
                                StrBuf_RFC822_to_Utf8(Msg->subj, Buf2, WCC->DefaultCharset, FoundCharset);
                                if ((StrLength(Msg->subj) > 75) &&