From: Felix Fietkau Date: Mon, 31 Jan 2011 16:17:40 +0000 (+0100) Subject: fix json string formatting X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3da4427fb5c8a2914902d566feaad0faf313160a;p=oweals%2Flibubox.git fix json string formatting --- 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);