buybuy plaintext important message.
[citadel.git] / webcit / vcard_edit.c
index ca76ec3746ec167b675289b6b07e8a8c1b49a04e..1e1e222970f2b75e3bae7a0d40c7b4d1e00f2c37 100644 (file)
@@ -1302,10 +1302,7 @@ void submit_vcard(void) {
        v = VCardLoad(Buf);     /* Start with the extra fields */
        FreeStrBuf(&Buf);
        if (v == NULL) {
-               safestrncpy(WCC->ImportantMessage,
-                       _("An error has occurred."),
-                       sizeof WCC->ImportantMessage
-               );
+               AppendImportantMessage(_("An error has occurred."), -1);
                edit_vcard();
                return;
        }
@@ -1348,10 +1345,7 @@ void submit_vcard(void) {
        serialized_vcard = vcard_serialize(v);
        vcard_free(v);
        if (serialized_vcard == NULL) {
-               safestrncpy(WCC->ImportantMessage,
-                       _("An error has occurred."),
-                       sizeof WCC->ImportantMessage
-               );
+               AppendImportantMessage(_("An error has occurred."), -1);
                edit_vcard();
                return;
        }