From 3da4427fb5c8a2914902d566feaad0faf313160a Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 31 Jan 2011 17:17:40 +0100 Subject: [PATCH] fix json string formatting --- blobmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2