From 7ac2c9846be1f8c82dacf17cf36551c5ccaf278a Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Wed, 01 Jan 2020 20:09:43 +0800
Subject: [PATCH] add app_ddns program
---
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