X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/96561feade39d880a45c8d17486156287f7e619d..840f02031c9cac3a54481070717c1ec6b0428da7:/StringPool.cpp diff --git a/StringPool.cpp b/StringPool.cpp index ec58591..a09cec0 100644 --- a/StringPool.cpp +++ b/StringPool.cpp @@ -25,8 +25,12 @@ void printStringPool(const ResStringPool* pool) const size_t NS = pool->size(); for (size_t s=0; s<NS; s++) { size_t len; - printf("String #%d: %s\n", s, - String8(pool->stringAt(s, &len)).string()); + const char *str = (const char*)pool->string8At(s, &len); + if (str == NULL) { + str = String8(pool->stringAt(s, &len)).string(); + } + + printf("String #%ld: %s\n", s, str); } }