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(len, bytesRead);
7 - std::memcpy(buffer, bytes, static_cast<int>(bytesRead));
8 + if (bytesRead != 0) std::memcpy(buffer, bytes, static_cast<int>(bytesRead));
9 return static_cast<int>(bytesRead);