- cleaned up some warnings from VC++ compiler

This commit is contained in:
Mark Vejvoda
2012-10-06 02:40:24 +00:00
parent c39da4cd69
commit 97ba1a27e2
10 changed files with 20 additions and 20 deletions

View File

@@ -2166,9 +2166,9 @@ string getFileTextContents(string path) {
// Load data and add terminating 0
vector<char> buffer;
buffer.resize(size + (streampos)1);
buffer.resize((unsigned int)size + 1);
xmlFile.read(&buffer.front(), static_cast<streamsize>(size));
buffer[size] = 0;
buffer[(unsigned int)size] = 0;
return &buffer.front();
}