Possible fix??

This commit is contained in:
Andrew Pamment 2017-03-30 23:20:23 +10:00
parent 0e5438de56
commit 4b73629423
2 changed files with 3 additions and 3 deletions

2
deps/aha/aha.c vendored
View File

@ -115,7 +115,7 @@ char * aha(char *input)
int temp; int temp;
char *ptr = unmangle_out; char *ptr = unmangle_out;
char *output = (char *)malloc(256); char *output = (char *)malloc(256);
int size; int size = 256;
int outat = 0; int outat = 0;
char minibuf[2]; char minibuf[2];

View File

@ -480,8 +480,8 @@ char *www_msgs_messageview(struct user_record *user, int conference, int area, i
strcat(page, aha_out); strcat(page, aha_out);
len += strlen(aha_out); len += strlen(aha_out);
//free(aha_out); free(aha_out);
//free(aha_text); free(aha_text);
sprintf(buffer, "</div>\n"); sprintf(buffer, "</div>\n");
if (len + strlen(buffer) > max_len - 1) { if (len + strlen(buffer) > max_len - 1) {