mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-16 08:56:51 +01:00
Bugfix of compile error and update README
update Makefile for Mac Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
@@ -214,7 +214,7 @@ void TestTopics::test(void)
|
||||
for ( int i = 0; i < 10 ; i++ )
|
||||
{
|
||||
MQTTSN_topicid tp1;
|
||||
char tp0[10];
|
||||
char tp0[20];
|
||||
sprintf(tp0, "Topic/%d/%d", i, i);
|
||||
tp1.type = MQTTSN_TOPIC_TYPE_NORMAL;
|
||||
tp1.data.long_.len = strlen(tp0);
|
||||
@@ -237,7 +237,7 @@ void TestTopics::test(void)
|
||||
for ( int i = 0; i < 10 ; i++ )
|
||||
{
|
||||
MQTTSN_topicid tp1;
|
||||
char tp0[10];
|
||||
char tp0[20];
|
||||
sprintf(tp0, "Topic/%d", i);
|
||||
tp1.type = MQTTSN_TOPIC_TYPE_NORMAL;
|
||||
tp1.data.long_.len = strlen(tp0);
|
||||
@@ -261,7 +261,7 @@ void TestTopics::test(void)
|
||||
for ( int i = 0; i < 10 ; i++ )
|
||||
{
|
||||
MQTTSN_topicid tpid1;
|
||||
char tp0[10];
|
||||
char tp0[20];
|
||||
sprintf(tp0, "TOPIC/%d/%d", i, i);
|
||||
tpid1.type = MQTTSN_TOPIC_TYPE_NORMAL;
|
||||
tpid1.data.long_.len = strlen(tp0);
|
||||
|
||||
Reference in New Issue
Block a user