]> code.citadel.org Git - citadel.git/blobdiff - webcit/notes.c
* Integrated the first batch of new icons.
[citadel.git] / webcit / notes.c
index 2e6d7ce09e915e796879e1ee4ca2ebe693689a74..c484632284648fb675675ed2ed9f8626c8bc1764 100644 (file)
@@ -30,17 +30,17 @@ void display_note(long msgnum) {
        int in_text = 0;
        int i;
 
-       wprintf("<IMG ALIGN=MIDDLE SRC=\"/static/note.gif\">\n");
+       wprintf("<IMG ALIGN=MIDDLE SRC=\"/static/storenotes_48x.gif\">\n");
 
        serv_printf("MSG0 %ld", msgnum);
-       serv_gets(buf);
+       serv_getln(buf, sizeof buf);
        if (buf[0] != '1') {
-               wprintf("%s<BR>\n", &buf[4]);
+               wprintf("%s<br />\n", &buf[4]);
                return;
        }
 
        strcpy(notetext, "");
-       while (serv_gets(buf), strcmp(buf, "000")) {
+       while (serv_getln(buf, sizeof buf), strcmp(buf, "000")) {
 
                /* Fill the buffer to at least 256 characters */
                if ( (in_text) && (strlen(notetext) < 256) ) {
@@ -60,5 +60,5 @@ void display_note(long msgnum) {
 
        /* Make it HTML-happy and print it. */
        stresc(display_notetext, notetext, 1, 1);
-       wprintf("%s<BR>\n", display_notetext);
+       wprintf("%s<br />\n", display_notetext);
 }