summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jakub Adámek <jakuba@google.com> 2016-10-21 07:51:17 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2016-10-21 07:51:19 +0000
commit42f40b159f2848266d20169b9395df79e7b731c4 (patch)
tree9e8d4d947eb2232f986b254b88e0ecc1792a8617
parent327dbfb94f175524a162b22af4c5a63479eeb164 (diff)
parent56b9987ed749639fb3fae7f90422797c29ed1312 (diff)
Merge "Fix idmap calls when a subdir is present." into cw-f-dev
-rw-r--r--core/jni/android_util_AssetManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/jni/android_util_AssetManager.cpp b/core/jni/android_util_AssetManager.cpp
index 9423ec42c733..fd663cdc7fe8 100644
--- a/core/jni/android_util_AssetManager.cpp
+++ b/core/jni/android_util_AssetManager.cpp
@@ -175,7 +175,7 @@ static void verifySystemIdmaps()
}
// Generic idmap parameters
- const char* argv[7];
+ const char* argv[8];
int argc = 0;
struct stat st;
@@ -203,7 +203,7 @@ static void verifySystemIdmaps()
// Finally, invoke idmap (if any overlay directory exists)
if (argc > 5) {
execv(AssetManager::IDMAP_BIN, (char* const*)argv);
- ALOGE("failed to execl for idmap: %s", strerror(errno));
+ ALOGE("failed to execv for idmap: %s", strerror(errno));
exit(1); // should never get here
} else {
exit(0);