diff options
author | Martin Szulecki | 2013-11-14 02:20:24 +0100 |
---|---|---|
committer | Martin Szulecki | 2013-11-14 02:20:24 +0100 |
commit | 958a48723ff7aa84c43a5266c0809e6d373a1903 (patch) | |
tree | 52b8bb8ddb44a4d5ad391a0ccdd81306c6453811 | |
parent | 045b712b73b3f860e9e90c1b7c560c7a0cd6f001 (diff) | |
download | ideviceinstaller-958a48723ff7aa84c43a5266c0809e6d373a1903.tar.gz ideviceinstaller-958a48723ff7aa84c43a5266c0809e6d373a1903.tar.bz2 |
Add ITUNES_METADATA_PLIST_FILENAME #define for reuse
-rw-r--r-- | src/ideviceinstaller.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c index 0877c86..7d10e75 100644 --- a/src/ideviceinstaller.c +++ b/src/ideviceinstaller.c @@ -47,6 +47,8 @@ #include <zip.h> +#define ITUNES_METADATA_PLIST_FILENAME "iTunesMetadata.plist" + const char PKG_PATH[] = "PublicStaging"; const char APPARCH_PATH[] = "ApplicationArchives"; @@ -807,7 +809,7 @@ run_again: char *zbuf = NULL; uint32_t len = 0; plist_t meta_dict = NULL; - if (zip_get_contents(zf, "iTunesMetadata.plist", 0, &zbuf, &len) == 0) { + if (zip_get_contents(zf, ITUNES_METADATA_PLIST_FILENAME, 0, &zbuf, &len) == 0) { meta = plist_new_data(zbuf, len); if (memcmp(zbuf, "bplist00", 8) == 0) { plist_from_bin(zbuf, len, &meta_dict); |