mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-16 00:46:52 +01:00
Merge pull request #24 from ty4tw/gateway
BugFix: stack smashing detected #23 LogPrint erro.
This commit is contained in:
@@ -131,7 +131,7 @@ void BrokerSendTask::run()
|
|||||||
*/
|
*/
|
||||||
void BrokerSendTask::log(Client* client, MQTTGWPacket* packet)
|
void BrokerSendTask::log(Client* client, MQTTGWPacket* packet)
|
||||||
{
|
{
|
||||||
char pbuf[SIZEOF_LOG_PACKET * 3];
|
char pbuf[(SIZEOF_LOG_PACKET + 5 )* 3];
|
||||||
char msgId[6];
|
char msgId[6];
|
||||||
|
|
||||||
switch (packet->getType())
|
switch (packet->getType())
|
||||||
|
|||||||
Reference in New Issue
Block a user