X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fhtml.c;h=323fa0523023bee62b25cc303058b6bc1e43264e;hb=f6df762979437d12004feb37bd1535f4880094ff;hp=5c95524e490e645378bf9d41867a5bca02b97c76;hpb=7f22c47809a3e10566f791acb7e6cb52197e6626;p=citadel.git diff --git a/citadel/html.c b/citadel/html.c index 5c95524e4..323fa0523 100644 --- a/citadel/html.c +++ b/citadel/html.c @@ -36,8 +36,8 @@ * 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; @@ -50,7 +50,7 @@ char *html_to_ascii(char *inputmsg, int screenwidth, int do_citaformat) { strcpy(inbuf, ""); strcpy(outbuf, ""); - outptr = mallok(strlen(inptr) + 256); + outptr = mallok(strlen(inptr) + SIZ); if (outptr == NULL) return NULL; strcpy(outptr, ""); outlen = 0;