projects
/
oweals
/
libubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9ebdbc
)
blobmsg_json: fix \u escaping for control characters
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 21 Jun 2013 15:06:34 +0000
(17:06 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 21 Jun 2013 15:06:34 +0000
(17:06 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
blobmsg_json.c
patch
|
blob
|
history
diff --git
a/blobmsg_json.c
b/blobmsg_json.c
index 7a4ab7b15661bfcd2a8e63b30112e70ca8332652..7e6fca4f0c3a1ab47fa0c0aff0a9450c33c2c85a 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;
}