another seg fault ;(

This commit is contained in:
Andrew Pamment 2017-03-30 22:58:07 +10:00
parent 94405100aa
commit eebec77272

View File

@ -469,9 +469,9 @@ char *www_msgs_messageview(struct user_record *user, int conference, int area, i
memcpy(aha_text, body, jmh.TxtLen); memcpy(aha_text, body, jmh.TxtLen);
aha_text[jmh.TxtLen] = '\0'; aha_text[jmh.TxtLen] = '\0';
fprintf(stderr, "Aha IN\n");
aha_out = aha(aha_text); aha_out = aha(aha_text);
fprintf(stderr, "Aha OUT\n");
while (len + strlen(aha_out) > max_len - 1) { while (len + strlen(aha_out) > max_len - 1) {
max_len += 4096; max_len += 4096;
page = (char *)realloc(page, max_len); page = (char *)realloc(page, max_len);