fix: add break in UTF-16 handling

Introducing the switch defaults in an earlier commit made UTF-16 \u
sequence handling broken.
This commit is contained in:
Max Bruckner 2017-02-04 01:54:56 +01:00
parent af6d5d3d7c
commit ee0c920dff
1 changed files with 1 additions and 0 deletions

View File

@ -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;