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>2013-06-21 19:06:34 +0400
committerFelix Fietkau <nbd@openwrt.org>2013-06-21 19:06:34 +0400
commit7c5d2b30815b5ff0b6bce35c1e486b3c17cce55b (patch)
treeec3420eb890f6160030f4d306f05ee16253a1e35 /blobmsg_json.c
parentb9ebdbcc648274cc630b6349374f9fb21e53f396 (diff)
blobmsg_json: fix \u escaping for control characters
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'blobmsg_json.c')
-rw-r--r--blobmsg_json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/blobmsg_json.c b/blobmsg_json.c
index 7a4ab7b..7e6fca4 100644
--- a/blobmsg_json.c
+++ b/blobmsg_json.c
@@ -193,7 +193,7 @@ static void blobmsg_format_string(struct strbuf *s, const char *str)
if (escape == 'u') {
sprintf(buf + 4, "%02x", (unsigned char) *p);
- len = 4;
+ len = 6;
} else {
len = 2;
}