mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
fix encode_string_as_pointer
This commit is contained in:
@ -173,13 +173,14 @@ static void encode_string_as_pointer(unsigned char *destination, const unsigned
|
||||
{
|
||||
if (source[0] == '/')
|
||||
{
|
||||
destination[0] = '~';
|
||||
destination[1] = '1';
|
||||
destination++;
|
||||
}
|
||||
else if (source[0] == '~')
|
||||
{
|
||||
destination[0] = '~';
|
||||
destination[1] = '1';
|
||||
destination[1] = '0';
|
||||
destination++;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user