* Replaced serv_gets() with serv_getln() - which now requires the caller
[citadel.git] / webcit / html2html.c
index 31a396b404640c815010baedc25ae202acdda43b..271dbe14376e9f2a8578878a27ad2468fb56c7ec 100644 (file)
@@ -51,7 +51,7 @@ void output_html(void) {
        msg = strdup("");
        sprintf(new_window, "<A TARGET=\"%s\" HREF=", TARGET);
 
-       while (serv_gets(buf), strcmp(buf, "000")) {
+       while (serv_getln(buf, sizeof buf), strcmp(buf, "000")) {
                line_length = strlen(buf);
                buffer_length = content_length + line_length + 2;
                msg = realloc(msg, buffer_length);