]> code.citadel.org Git - citadel.git/blobdiff - webcit/notes.c
* added GCC Format String checkers to the remaining printf alikes
[citadel.git] / webcit / notes.c
index ccc530d2ed511c12afb9937435e60a3918ae6ac5..7478813d971ceae17c0b042a6a7d2c44045fc64d 100644 (file)
@@ -272,7 +272,7 @@ void ajax_update_note(void) {
        // Was this request a delete operation?  If so, nuke it...
        if (havebstr("deletenote")) {
                if (!strcasecmp(bstr("deletenote"), "yes")) {
-                       serv_printf("DELE %ld", msgnum);
+                       serv_printf("DELE %d", msgnum);
                        serv_getln(buf, sizeof buf);
                        begin_ajax_response();
                        wprintf("%s", buf);
@@ -285,7 +285,7 @@ void ajax_update_note(void) {
        v = vnote_new_from_msg(msgnum);
        if (!v) {
                begin_ajax_response();
-               wprintf("Cannot locate a vNote within message %ld\n", msgnum);
+               wprintf("Cannot locate a vNote within message %d\n", msgnum);
                end_ajax_response();
                return;
        }