BugFix: stack smashing detected #23 LogPrint erroe.

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
tomoaki
2016-08-10 13:27:09 +09:00
parent 428d5e8003
commit 40ba6b17e8

View File

@@ -131,7 +131,7 @@ void BrokerSendTask::run()
*/
void BrokerSendTask::log(Client* client, MQTTGWPacket* packet)
{
char pbuf[SIZEOF_LOG_PACKET * 3];
char pbuf[(SIZEOF_LOG_PACKET + 5 )* 3];
char msgId[6];
switch (packet->getType())