v1.1.0-v1.1.0 RC

This commit is contained in:
fireice-uk
2017-01-16 14:05:33 +00:00
parent 2e052dec10
commit 0a32bad780
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -235,7 +235,8 @@ bool jconf::parse_config(const char* sFilename)
fclose(pFile);
//Replace Unicode BOM with spaces - we always use UTF-8
if(buffer[1] == 0xEF && buffer[2] == 0xBB && buffer[3] == 0xBF)
unsigned char* ubuffer = (unsigned char*)buffer;
if(ubuffer[1] == 0xEF && ubuffer[2] == 0xBB && ubuffer[3] == 0xBF)
{
buffer[1] = ' ';
buffer[2] = ' ';