From 7c5d2b30815b5ff0b6bce35c1e486b3c17cce55b Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 21 Jun 2013 17:06:34 +0200 Subject: [PATCH] blobmsg_json: fix \u escaping for control characters Signed-off-by: Felix Fietkau --- blobmsg_json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.11.0