提交 ee0c920d 编写于 作者: M Max Bruckner

fix: add break in UTF-16 handling

Introducing the switch defaults in an earlier commit made UTF-16 \u
sequence handling broken.
上级 af6d5d3d
......@@ -665,6 +665,7 @@ static const unsigned char *parse_string(cJSON *item, const unsigned char *str,
/* depending on the length in bytes this determines the
* encoding ofthe first UTF8 byte */
*--ptr2 = (unsigned char)((uc | firstByteMark[len]) & 0xFF);
break;
default:
*ep = str;
return NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册