summaryrefslogtreecommitdiffstats
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-10-29 20:30:27 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2013-10-29 20:30:27 +0000
commit69920427ea01421d34f3a7576bdd135527b20859 (patch)
treecc6a7e56e5c5e74d66603c8170660fd99c52bff3 /libs/androidfw/ObbFile.cpp
parentb4cae4a955ebd91cf35aaeb00ab12ce6f1d5fc48 (diff)
parentc367d48c55e5a3fa0df14fd62889e4bb6b63cb01 (diff)
downloadframeworks_base-69920427ea01421d34f3a7576bdd135527b20859.zip
frameworks_base-69920427ea01421d34f3a7576bdd135527b20859.tar.gz
frameworks_base-69920427ea01421d34f3a7576bdd135527b20859.tar.bz2
Merge "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));