fix json string formatting

This commit is contained in:
Felix Fietkau 2011-01-31 17:17:40 +01:00
parent f01871bc30
commit 3da4427fb5

View file

@ -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);