]> code.citadel.org Git - citadel.git/blobdiff - webcit/vcard_edit.c
* don't choke if the vcard fails to load
[citadel.git] / webcit / vcard_edit.c
index d823624dfde260e8568b7d5c212183a2830e8f99..ccdaba684e5bf53178b4e0dc723a941971b3f752 100644 (file)
@@ -122,7 +122,7 @@ void fetch_ab_name(message_summary *Msg, char **namebuf) {
        memset(&summ, 0, sizeof(summ));
        //////safestrncpy(summ.subj, "(no subject)", sizeof summ.subj);
 
-       serv_printf(buf, "MSG0 %ld|0", Msg->msgnum);    /** unfortunately we need the mime info now */
+       serv_printf("MSG0 %ld|0", Msg->msgnum); /** unfortunately we need the mime info now */
        serv_getln(buf, sizeof buf);
        if (buf[0] != '1') return;
 
@@ -778,7 +778,7 @@ void do_edit_vcard(long msgnum, char *partnum,
                        }
                        Buf = NewStrBuf();
                        serv_printf(buf, "DLAT %ld|%s", msgnum, partnum);
-                       StrBuf_ServGetlnBuffered(Buf);
+                       StrBuf_ServGetln(Buf);
                        if (GetServerStatus(Buf, NULL) != 6) {
                                convenience_page("770000", "Error", &(ChrPtr(Buf)[4]));
                                return;