mirror of
https://github.com/ceph/ceph
synced 2025-02-20 17:37:29 +00:00
json escaping fix
This commit is contained in:
parent
a2b0857c5e
commit
f2d19a0317
@ -185,7 +185,7 @@ void escape_json_attr(const char *buf, char *out)
|
||||
default:
|
||||
// Escape control characters.
|
||||
if ((c < 0x20) || (c == 0x7f)) {
|
||||
snprintf(o, 6, "\\u%04x", c);
|
||||
snprintf(o, 7, "\\u%04x", c);
|
||||
o += 6;
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user