Fix a misleading error message.
I couldn't understand on https://issuetracker.google.com/273841150
why we saw a file truncation failure error message followed by a
claim that ExtractToMemory() had failed, when only ExtractToFile()
should be doing anything with files...
Change-Id: Ic3b2c8b390a7b9f7a2e5c8b229b55c46acf6638e
diff --git a/libs/androidfw/ZipFileRO.cpp b/libs/androidfw/ZipFileRO.cpp
index d7b5914..9d4b426 100644
--- a/libs/androidfw/ZipFileRO.cpp
+++ b/libs/androidfw/ZipFileRO.cpp
@@ -304,7 +304,7 @@
_ZipEntryRO *zipEntry = reinterpret_cast<_ZipEntryRO*>(entry);
const int32_t error = ExtractEntryToFile(mHandle, &(zipEntry->entry), fd);
if (error) {
- ALOGW("ExtractToMemory failed with %s", ErrorCodeString(error));
+ ALOGW("ExtractToFile failed with %s", ErrorCodeString(error));
return false;
}