Merge pull request #24 from ty4tw/gateway

BugFix: stack smashing detected #23  LogPrint erro.
This commit is contained in:
Ian Craggs
2016-08-10 10:49:12 +01:00
committed by GitHub

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())