From f2d19a03172886ff75a356fea07593b6382f5574 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Mon, 29 Aug 2011 17:12:03 -0700 Subject: [PATCH] json escaping fix --- src/common/escape.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/escape.c b/src/common/escape.c index 95a7540ffcdfa..585961e02a101 100644 --- a/src/common/escape.c +++ b/src/common/escape.c @@ -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 { -- 2.39.5