Fix bug caused by 8ca07a0

This commit is contained in:
Nicolas Williams committed 2014-12-24 02:25:11 -06:00
1 parent 8ca07a08c3
commit 1cdcff1c01
1 file changed
+1 -1
+1 -1
View File
@@ -257,7 +257,7 @@ static pfunc found_string(struct jv_parser* p) {
return "Invalid escape";
}
} else {
if (c < 0x001f)
if (c > 0 && c < 0x001f)
return "Invalid string: control characters from U+0000 through U+001F must be escaped";
*out++ = c;
}