From a3d3ea770ace43da85d24a1035998a0ef644cfc5 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sat, 20 Aug 2016 21:21:01 +1000 Subject: [PATCH] fix msg quoting --- www_msgs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www_msgs.c b/www_msgs.c index f33290c..567e99b 100644 --- a/www_msgs.c +++ b/www_msgs.c @@ -416,7 +416,7 @@ char *www_msgs_messageview(struct user_record *user, int conference, int area, i strcat(page, buffer); len += strlen(buffer); - free(body); + sprintf(buffer, "
\n"); if (len + strlen(buffer) > max_len - 1) { @@ -529,7 +529,7 @@ char *www_msgs_messageview(struct user_record *user, int conference, int area, i strcat(page, buffer); len += strlen(buffer); } - + free(body); sprintf(buffer, "\n
"); if (len + strlen(buffer) > max_len - 1) { max_len += 4096;