commit | 56c0f139b5fc98773831321b952a0a070bd45f59 | [log] [tgz] |
---|---|---|
author | zyinter2008 <zyinter2008@163.com> | Thu Nov 17 10:59:23 2016 +0800 |
committer | GitHub <noreply@github.com> | Thu Nov 17 10:59:23 2016 +0800 |
tree | a642a3b52a35c74abe7b881eacc8f0b49e057576 | |
parent | 7fa6573153a6e555071276ba8c7082442528abc5 [diff] [blame] |
Update printer_json.c modify the conditon of control characters
diff --git a/src/printer_json.c b/src/printer_json.c index 938523a..7627110 100644 --- a/src/printer_json.c +++ b/src/printer_json.c
@@ -41,7 +41,7 @@ ly_write(out, "\"", 1); for (i = n = 0; text[i]; i++) { - if (text[i] < 0x20) { + if (text[i] >= 0 && text[i] < 0x20) { /* control character */ n += ly_print(out, "\\u%.4X"); } else {