1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 19:13:07 +01:00

Game commands' argument validation

This commit is contained in:
Michał Janiszewski
2016-01-24 19:31:40 +01:00
parent 80550ca365
commit 95e3895b89
4 changed files with 24 additions and 2 deletions

View File

@@ -149,7 +149,7 @@ namespace String
const utf8 * SkipBOM(const utf8 * buffer)
{
if (buffer[0] == 0xEF && buffer[1] == 0xBB && buffer[2] == 0xBF)
if ((unsigned char)buffer[0] == 0xEF && (unsigned char)buffer[1] == 0xBB && (unsigned char)buffer[2] == 0xBF)
{
return buffer + 3;
}