fix json string formatting
authorFelix Fietkau <nbd@openwrt.org>
Mon, 31 Jan 2011 16:17:40 +0000 (17:17 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 31 Jan 2011 16:17:40 +0000 (17:17 +0100)
blobmsg.c

index 3e9c7743ac0a14229063e278cff08053fe165933..e5de129e36f09eae74fb43bba02483baffb7bbd4 100644 (file)
--- 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);