fix encode_string_as_pointer

This commit is contained in:
Alanscut
2020-03-18 16:04:58 +08:00
parent ae7a7a1d0c
commit d92c0de7e8
2 changed files with 22 additions and 1 deletions

View File

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