Merge pull request #3145 from giox069/master
Fix char signedness in glyph offset calculation, fixes #2137
This commit is contained in:
commit
88fa29c500
2
libfreerdp/cache/glyph.c
vendored
2
libfreerdp/cache/glyph.c
vendored
@ -57,7 +57,7 @@ void update_process_glyph(rdpContext* context, BYTE* data, int* index,
|
||||
|
||||
if (offset & 0x80)
|
||||
{
|
||||
offset = data[*index + 1] | ((int)((char)data[*index + 2]) << 8);
|
||||
offset = data[*index + 1] | ((int)((signed char)data[*index + 2]) << 8);
|
||||
(*index)++;
|
||||
(*index)++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user