1 --- src/lib/libetonyek_xml.cpp
2 +++ src/lib/libetonyek_xml.cpp
4 unsigned long bytesRead = 0;
5 const unsigned char *const bytes = input->read((unsigned long)len, bytesRead);
7 - std::memcpy(buffer, bytes, static_cast<size_t>(bytesRead));
8 + if (bytesRead != 0) std::memcpy(buffer, bytes, static_cast<size_t>(bytesRead));
9 return static_cast<int>(bytesRead);