Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-01-31 19:17:40 +0300
committerFelix Fietkau <nbd@openwrt.org>2011-01-31 19:17:40 +0300
commit3da4427fb5c8a2914902d566feaad0faf313160a (patch)
tree86527b9e1083359dc852d980cc1273422cd416fb /blobmsg.c
parentf01871bc3083c777bc081358dce4d0ed0f2b464c (diff)
fix json string formatting
Diffstat (limited to 'blobmsg.c')
-rw-r--r--blobmsg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/blobmsg.c b/blobmsg.c
index 3e9c774..e5de129 100644
--- a/blobmsg.c
+++ b/blobmsg.c
@@ -126,7 +126,7 @@ static void blobmsg_format_element(struct strbuf *s, struct blob_attr *attr, boo
sprintf(buf, "%lld", *(uint64_t *)data);
break;
case BLOBMSG_TYPE_STRING:
- blobmsg_puts(s, data, strlen(data));
+ blobmsg_format_string(s, data);
return;
case BLOBMSG_TYPE_ARRAY:
blobmsg_format_json_list(s, data, len, true);