summaryrefslogtreecommitdiffstats
path: root/lib/inifile
diff options
context:
space:
mode:
authornarroo <narroo@vt.edu>2014-02-16 14:22:10 +0100
committernarroo <narroo@vt.edu>2014-02-16 14:22:10 +0100
commit03fd3b556a3842da5e359f5c2317d1b62c8e14fd (patch)
tree8e02763b33a008ca5a70e973f78cfdb7e746fcdf /lib/inifile
parentChanged char[] to unsigned char[] in cIniFile::RemoveBom (diff)
downloadcuberite-03fd3b556a3842da5e359f5c2317d1b62c8e14fd.tar
cuberite-03fd3b556a3842da5e359f5c2317d1b62c8e14fd.tar.gz
cuberite-03fd3b556a3842da5e359f5c2317d1b62c8e14fd.tar.bz2
cuberite-03fd3b556a3842da5e359f5c2317d1b62c8e14fd.tar.lz
cuberite-03fd3b556a3842da5e359f5c2317d1b62c8e14fd.tar.xz
cuberite-03fd3b556a3842da5e359f5c2317d1b62c8e14fd.tar.zst
cuberite-03fd3b556a3842da5e359f5c2317d1b62c8e14fd.zip
Diffstat (limited to 'lib/inifile')
-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 e2a91c4c2..db48ad25d 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 unsigned char BOM[] = { 0xEF, 0xBB, 0xBF };
+ static const AString 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)