]> code.citadel.org Git - citadel.git/blobdiff - webcit/sysmsgs.c
* added gcc printf format checking to wprintf
[citadel.git] / webcit / sysmsgs.c
index 3c139232ae41542dd94e79bc5cfff0823e283e1d..00abb6cc5eefec13b01e683e6466c579f1093220 100644 (file)
@@ -37,14 +37,14 @@ void display_edit(char *description, char *check_cmd,
                output_headers(1, 1, 0, 0, 0, 0);
        }
 
-       svprintf("BOXTITLE", WCS_STRING, _("Edit %s"), description);
+       svprintf(HKEY("BOXTITLE"), WCS_STRING, _("Edit %s"), description);
        do_template("beginbox");
 
        wprintf(_("Enter %s below. Text is formatted to the reader's browser."
                " A newline is forced by preceding the next line by a blank."), description);
 
        wprintf("<form method=\"post\" action=\"%s\">\n", save_cmd);
-       wprintf("<input type=\"hidden\" name=\"nonce\" value=\"%ld\">\n", WC->nonce);
+       wprintf("<input type=\"hidden\" name=\"nonce\" value=\"%d\">\n", WC->nonce);
        wprintf("<textarea name=\"msgtext\" wrap=soft "
                "rows=10 cols=80 width=80>\n");
        serv_puts(read_cmd);
@@ -72,7 +72,7 @@ void save_edit(char *description, char *enter_cmd, int regoto)
 {
        char buf[SIZ];
 
-       if (IsEmptyStr(bstr("save_button"))) {
+       if (!havebstr("save_button")) {
                sprintf(WC->ImportantMessage,
                        _("Cancelled.  %s was not saved."),
                        description);