From e2c939b4e8e7233bc166321125302f604da31d54 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 21 Aug 2007 16:57:50 +0000 Subject: [PATCH] Reverted one of the strlen() to IsEmptyStr() changes because it was causing the indexer to crash. --- citadel/html.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/citadel/html.c b/citadel/html.c index afc97e964..74bffbf5e 100644 --- a/citadel/html.c +++ b/citadel/html.c @@ -448,26 +448,26 @@ char *html_to_ascii(char *inputmsg, int msglen, int screenwidth, int do_citaform } /* Make sure the output buffer is big enough */ - if ((output_len + strlen(outbuf) + SIZ) - > outptr_buffer_size) { + if ((output_len + strlen(outbuf) + SIZ) > outptr_buffer_size) { outptr_buffer_size += SIZ; outptr = realloc(outptr, outptr_buffer_size); + if (outptr == NULL) { + abort(); + } } /* Output any lines terminated with hard line breaks */ do { did_out = 0; - if (!IsEmptyStr(outbuf)) { - for (i = 0; !IsEmptyStr(&outbuf[i]); ++i) { + if (strlen(outbuf) > 0) { + for (i = 0; i