Fixed issue with lime file transfer

This commit is contained in:
Sylvain Berfini 2017-09-28 19:19:29 +02:00
parent 46dbc8a4cb
commit 6bcf9311cc

View file

@ -642,7 +642,9 @@ void ChatMessagePrivate::processResponseFromPostFile(const belle_http_response_e
}
// dump the xml into msg->message
xmlDocDumpFormatMemoryEnc(xmlMessageBody, (xmlChar **)&cText, &xmlStringLength, "UTF-8", 0);
char *buffer;
xmlDocDumpFormatMemoryEnc(xmlMessageBody, (xmlChar **)&buffer, &xmlStringLength, "UTF-8", 0);
setText(buffer);
break;
}
xmlFree(typeAttribute);