summaryrefslogtreecommitdiff
path: root/zen/xml_io.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'zen/xml_io.cpp')
-rwxr-xr-xzen/xml_io.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/zen/xml_io.cpp b/zen/xml_io.cpp
index 0a1c8505..8192d6e6 100755
--- a/zen/xml_io.cpp
+++ b/zen/xml_io.cpp
@@ -22,7 +22,7 @@ XmlDoc zen::loadXmlDocument(const Zstring& filePath) //throw FileError
for (;;)
{
buffer.resize(buffer.size() + blockSize);
- const size_t bytesRead = fileIn.read(&*(buffer.end() - blockSize), blockSize); //throw FileError, (X); return "bytesToRead" bytes unless end of stream!
+ const size_t bytesRead = fileIn.read(&*(buffer.end() - blockSize), blockSize); //throw FileError, ErrorFileLocked, (X); return "bytesToRead" bytes unless end of stream!
buffer.resize(buffer.size() - blockSize + bytesRead); //caveat: unsigned arithmetics
//quick test whether input is an XML: avoid loading large binary files up front!
bgstack15