* msgnum is a long. format it like that.
authorWilfried Göesgens <willi@citadel.org>
Thu, 15 Nov 2007 22:55:33 +0000 (22:55 +0000)
committerWilfried Göesgens <willi@citadel.org>
Thu, 15 Nov 2007 22:55:33 +0000 (22:55 +0000)
webcit/notes.c

index ffd6f33af9ce8a9e67d9f9723764cd9122652302..0d790ec7a86f89bcc3c1cf79de2dd6b7effdce54 100644 (file)
@@ -68,11 +68,11 @@ void display_note(long msgnum)
                wprintf ("</script>\n");
        }
        else {
-               wprintf ("<IMG ALIGN=MIDDLE src=\"static/storenotes_48x.gif\" id=\"note_%s\" ", msgnum); 
+               wprintf ("<IMG ALIGN=MIDDLE src=\"static/storenotes_48x.gif\" id=\"note_%ld\" ", msgnum); 
                wprintf ("class=\"notes\">\n");
                wprintf ("<script type=\"text/javascript\">\n");
 //             wprintf ("//<![CDATA[\n");
-               wprintf ("new Draggable (\"note_%s\", {revert:true})\n", msgnum);
+               wprintf ("new Draggable (\"note_%ld\", {revert:true})\n", msgnum);
 //             wprintf ("//]]>\n");
                wprintf ("</script>\n");
        }