From f951dda449766c1fc0d11b43af37eda559004120 Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Sun, 23 Mar 2014 19:52:51 -0400 Subject: [PATCH] Fix bug caught by clang --- IO/src/ImageLoaderKTX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IO/src/ImageLoaderKTX.cpp b/IO/src/ImageLoaderKTX.cpp index 4e05201..20ddc34 100644 --- a/IO/src/ImageLoaderKTX.cpp +++ b/IO/src/ImageLoaderKTX.cpp @@ -216,7 +216,7 @@ bool ImageLoaderKTX::ReadData() { memcpy(keyValueData, rdr.GetData(), keyAndValueByteSize); const char *key = reinterpret_cast((const uint8 *)keyValueData); const char *value = key; - while(value != '\0') { + while(*value != '\0') { value++; } value++; // consume the null byte