Fix segfault maybe?
This commit is contained in:
parent
593042c06a
commit
d1bdc8dca2
@ -5,7 +5,7 @@ JAMLIB = deps/jamlib/jamlib.a
|
|||||||
ZMODEM = deps/Xmodem/libzmodem.a
|
ZMODEM = deps/Xmodem/libzmodem.a
|
||||||
LUA = deps/lua/liblua.a
|
LUA = deps/lua/liblua.a
|
||||||
B64 = deps/libb64-1.2/src/libb64.a
|
B64 = deps/libb64-1.2/src/libb64.a
|
||||||
MICROHTTPD=-lmicrohttpd -liconv
|
MICROHTTPD=-lmicrohttpd
|
||||||
ODOORS = deps/odoors/libs-`uname -s`/libODoors.a
|
ODOORS = deps/odoors/libs-`uname -s`/libODoors.a
|
||||||
JSMN = deps/jsmn/libjsmn.a
|
JSMN = deps/jsmn/libjsmn.a
|
||||||
CDK = deps/cdk-5-20161210/libcdk.a
|
CDK = deps/cdk-5-20161210/libcdk.a
|
||||||
|
@ -477,6 +477,10 @@ char *www_msgs_messageview(struct user_record *user, int conference, int area, i
|
|||||||
ic = iconv_open("UTF-8//TRANSLIT", "CP437");
|
ic = iconv_open("UTF-8//TRANSLIT", "CP437");
|
||||||
iconv(ic, &aha_cp437, jmh.TxtLen, &aha_text, jmh.TxtLen);
|
iconv(ic, &aha_cp437, jmh.TxtLen, &aha_text, jmh.TxtLen);
|
||||||
iconv_close(ic);
|
iconv_close(ic);
|
||||||
|
free(aha_cp437);
|
||||||
|
|
||||||
|
aha_text[jmh.TxtLen] = '\0';
|
||||||
|
|
||||||
aha_out = aha(aha_text);
|
aha_out = aha(aha_text);
|
||||||
while (len + strlen(aha_out) > max_len - 1) {
|
while (len + strlen(aha_out) > max_len - 1) {
|
||||||
max_len += 4096;
|
max_len += 4096;
|
||||||
|
Reference in New Issue
Block a user