projects
/
project
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
blobmsg_json: fix \u escaping for control characters
[project/libubox.git]
/
blobmsg_json.c
diff --git
a/blobmsg_json.c
b/blobmsg_json.c
index
7a4ab7b
..
7e6fca4
100644
(file)
--- 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;
}