summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornarroo <narroo@vt.edu>2014-02-16 13:49:09 +0100
committernarroo <narroo@vt.edu>2014-02-16 13:49:09 +0100
commitd4f2788008d413f2b2031d55759e54b952d0a964 (patch)
tree009897eb792470fdc88a3f7977e6503fa0076bb7
parentAddressed Issue #402. cIniFile can now process UTF-8 files that have a (diff)
downloadcuberite-d4f2788008d413f2b2031d55759e54b952d0a964.tar
cuberite-d4f2788008d413f2b2031d55759e54b952d0a964.tar.gz
cuberite-d4f2788008d413f2b2031d55759e54b952d0a964.tar.bz2
cuberite-d4f2788008d413f2b2031d55759e54b952d0a964.tar.lz
cuberite-d4f2788008d413f2b2031d55759e54b952d0a964.tar.xz
cuberite-d4f2788008d413f2b2031d55759e54b952d0a964.tar.zst
cuberite-d4f2788008d413f2b2031d55759e54b952d0a964.zip
-rw-r--r--lib/inifile/iniFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/inifile/iniFile.cpp b/lib/inifile/iniFile.cpp
index 7b0df3d68..e2a91c4c2 100644
--- a/lib/inifile/iniFile.cpp
+++ b/lib/inifile/iniFile.cpp
@@ -834,7 +834,7 @@ AString cIniFile::CheckCase(const AString & s) const
void cIniFile::RemoveBom(AString & a_line) const
{
// The BOM sequence for UTF-8 is 0xEF,0xBB,0xBF ( In Unicode Latin I:  )
- static char BOM[] = { 0xEF, 0xBB, 0xBF };
+ static unsigned char BOM[] = { 0xEF, 0xBB, 0xBF };
// The BOM sequence, if present, is always the first three characters of the input.
if (a_line.compare(0, 3, BOM) == 0)