/*
- * html.c -- Functions which handle translation between HTML and plain text
* $Id$
+ *
+ * Functions which handle translation between HTML and plain text
*/
#include "sysdep.h"
* do_citaformat = set to 1 to indent newlines with spaces
*/
char *html_to_ascii(char *inputmsg, int screenwidth, int do_citaformat) {
- char inbuf[256];
- char outbuf[256];
+ char inbuf[SIZ];
+ char outbuf[SIZ];
char tag[1024];
int done_reading = 0;
char *inptr;
strcpy(inbuf, "");
strcpy(outbuf, "");
- outptr = mallok(strlen(inptr) + 256);
+ outptr = mallok(strlen(inptr) + SIZ);
if (outptr == NULL) return NULL;
strcpy(outptr, "");
outlen = 0;
/* Fill the input buffer */
if ( (done_reading == 0) && (strlen(inbuf) < 128) ) {
- /* FIX ... genericize this */
ch = *inputmsg++;
if (ch > 0) {
inbuf[strlen(inbuf)+1] = 0;