From cee44963be8187137f9896fdb9162a38bd0e2721 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Wed, 26 Jun 2019 13:17:17 +0800
Subject: [PATCH] update pj1_mqttd conf.c
---
pj1_mqttd/etc/conf.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pj1_mqttd/etc/conf.c b/pj1_mqttd/etc/conf.c
index 5b73e3e..000c10a 100644
--- a/pj1_mqttd/etc/conf.c
+++ b/pj1_mqttd/etc/conf.c
@@ -103,9 +103,9 @@
log_err("ERROR: Parser production ID failure\n");
return -2;
}
- snprintf(ctx->id, sizeof(ctx->id), "\"%s\"", str);
- //strncpy(ctx->id, str, sizeof(ctx->id) );
+ /* cJSON parser ID will get "" */
+ snprintf(ctx->id, sizeof(ctx->id), "\"%s\"", str);
log_nrml("Parser production ID [%s]\n", ctx->id);
--
Gitblit v1.9.1