summaryrefslogtreecommitdiffstats
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-10-29 13:32:33 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-10-29 13:32:33 -0700
commit8f592378a1ea7f31d57253dc202f42707ef4da36 (patch)
treeff92cf68202608d8fdd76e3f47a208a2933f725d /libs/androidfw/ObbFile.cpp
parent569220399841ae1a3fd62a1b77fa087bca2ee0f3 (diff)
parent69920427ea01421d34f3a7576bdd135527b20859 (diff)
downloadframeworks_base-8f592378a1ea7f31d57253dc202f42707ef4da36.zip
frameworks_base-8f592378a1ea7f31d57253dc202f42707ef4da36.tar.gz
frameworks_base-8f592378a1ea7f31d57253dc202f42707ef4da36.tar.bz2
am 69920427: Merge "Fix a variety of small publicly-reported bugs."
* commit '69920427ea01421d34f3a7576bdd135527b20859': Fix a variety of small publicly-reported bugs.
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
-rw-r--r--libs/androidfw/ObbFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/androidfw/ObbFile.cpp b/libs/androidfw/ObbFile.cpp
index 21e06c8..ec59f06 100644
--- a/libs/androidfw/ObbFile.cpp
+++ b/libs/androidfw/ObbFile.cpp
@@ -133,7 +133,7 @@ bool ObbFile::parseObbFile(int fd)
{
lseek64(fd, fileLength - kFooterTagSize, SEEK_SET);
- char *footer = new char[kFooterTagSize];
+ char footer[kFooterTagSize];
actual = TEMP_FAILURE_RETRY(read(fd, footer, kFooterTagSize));
if (actual != kFooterTagSize) {
ALOGW("couldn't read footer signature: %s\n", strerror(errno));