*
*/
-#include <ctype.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <stdio.h>
-#include <fcntl.h>
-#include <signal.h>
-#include <sys/types.h>
-#include <sys/wait.h>
-#include <sys/socket.h>
-#include <limits.h>
-#include <string.h>
-#include <pwd.h>
-#include <errno.h>
-#include <stdarg.h>
-#include <time.h>
#include "webcit.h"
#include "webserver.h"
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]);
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) ) {