diff options
author | 2016-09-07 09:16:44 +0000 | |
---|---|---|
committer | 2016-09-07 09:16:44 +0000 | |
commit | ad95fc06aa902ee7b96c09bb07af4061f87fe77f (patch) | |
tree | 6872f60cbc73cc9ad4ce8b08c16daa27e796fa23 /cmds/installd/installd.cpp | |
parent | 60e97a4bd482a0b096135099e3ac179d8676ede0 (diff) | |
parent | 249c1796a2e62f8751348e5bafce9f40e6538cba (diff) |
Merge "installd: Simplify Dalvik cache path creation"
Diffstat (limited to 'cmds/installd/installd.cpp')
-rw-r--r-- | cmds/installd/installd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmds/installd/installd.cpp b/cmds/installd/installd.cpp index 2bc3dfa183..531c6df200 100644 --- a/cmds/installd/installd.cpp +++ b/cmds/installd/installd.cpp @@ -151,12 +151,11 @@ bool create_cache_path(char path[PKG_PATH_MAX], return false; } - sprintf(path,"%s%s/%s/%s%s", + sprintf(path,"%s%s/%s/%s", android_data_dir.path, DALVIK_CACHE, instruction_set, - src + 1, /* skip the leading / */ - DALVIK_CACHE_POSTFIX); + src + 1 /* skip the leading / */); char* tmp = path + @@ -171,6 +170,7 @@ bool create_cache_path(char path[PKG_PATH_MAX], } } + strcat(path, DALVIK_CACHE_POSTFIX); return true; } |