mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 02:14:26 +02:00
Fix iteration
This commit is contained in:
parent
399270d243
commit
9b8a531439
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ namespace ktx {
|
|||
|
||||
// find the first null character \0 and extract the key
|
||||
uint32_t keyLength = 0;
|
||||
while (reinterpret_cast<const char*>(keyValueBytes[++keyLength]) != '\0') {
|
||||
while (reinterpret_cast<const char*>(keyValueBytes)[++keyLength] != '\0') {
|
||||
if (keyLength == keyAndValueByteSize) {
|
||||
// key must be null-terminated, and there must be space for the value
|
||||
throw ReaderException("invalid key-value " + std::string(reinterpret_cast<const char*>(keyValueBytes), keyLength));
|
||||
|
|
Loading…
Reference in a new issue