diff options
| -rw-r--r-- | src/ideviceinstaller.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c index c50bacf..d6c10a8 100644 --- a/src/ideviceinstaller.c +++ b/src/ideviceinstaller.c | |||
| @@ -1216,7 +1216,7 @@ run_again: | |||
| 1216 | size_t flen = 0; | 1216 | size_t flen = 0; |
| 1217 | zbuf = buf_from_file(extmeta, &flen); | 1217 | zbuf = buf_from_file(extmeta, &flen); |
| 1218 | if (zbuf && flen) { | 1218 | if (zbuf && flen) { |
| 1219 | meta = plist_new_data(zbuf, flen); | 1219 | meta = plist_new_data((uint8_t*)zbuf, flen); |
| 1220 | plist_from_memory(zbuf, flen, &meta_dict, NULL); | 1220 | plist_from_memory(zbuf, flen, &meta_dict, NULL); |
| 1221 | free(zbuf); | 1221 | free(zbuf); |
| 1222 | } | 1222 | } |
| @@ -1231,7 +1231,7 @@ run_again: | |||
| 1231 | if (!meta && !meta_dict) { | 1231 | if (!meta && !meta_dict) { |
| 1232 | /* extract iTunesMetadata.plist from package */ | 1232 | /* extract iTunesMetadata.plist from package */ |
| 1233 | if (zip_get_contents(zf, ITUNES_METADATA_PLIST_FILENAME, 0, &zbuf, &len) == 0) { | 1233 | if (zip_get_contents(zf, ITUNES_METADATA_PLIST_FILENAME, 0, &zbuf, &len) == 0) { |
| 1234 | meta = plist_new_data(zbuf, len); | 1234 | meta = plist_new_data((uint8_t*)zbuf, len); |
| 1235 | plist_from_memory(zbuf, len, &meta_dict, NULL); | 1235 | plist_from_memory(zbuf, len, &meta_dict, NULL); |
| 1236 | } | 1236 | } |
| 1237 | if (!meta_dict) { | 1237 | if (!meta_dict) { |
| @@ -1304,7 +1304,7 @@ run_again: | |||
| 1304 | size_t flen = 0; | 1304 | size_t flen = 0; |
| 1305 | zbuf = buf_from_file(extsinf, &flen); | 1305 | zbuf = buf_from_file(extsinf, &flen); |
| 1306 | if (zbuf && flen) { | 1306 | if (zbuf && flen) { |
| 1307 | sinf = plist_new_data(zbuf, flen); | 1307 | sinf = plist_new_data((uint8_t*)zbuf, flen); |
| 1308 | free(zbuf); | 1308 | free(zbuf); |
| 1309 | } else { | 1309 | } else { |
| 1310 | fprintf(stderr, "WARNING: could not load external SINF %s!\n", extsinf); | 1310 | fprintf(stderr, "WARNING: could not load external SINF %s!\n", extsinf); |
| @@ -1324,7 +1324,7 @@ run_again: | |||
| 1324 | zbuf = NULL; | 1324 | zbuf = NULL; |
| 1325 | len = 0; | 1325 | len = 0; |
| 1326 | if (zip_get_contents(zf, sinfname, 0, &zbuf, &len) == 0) { | 1326 | if (zip_get_contents(zf, sinfname, 0, &zbuf, &len) == 0) { |
| 1327 | sinf = plist_new_data(zbuf, len); | 1327 | sinf = plist_new_data((uint8_t*)zbuf, len); |
| 1328 | } else { | 1328 | } else { |
| 1329 | fprintf(stderr, "WARNING: could not locate %s in archive!\n", sinfname); | 1329 | fprintf(stderr, "WARNING: could not locate %s in archive!\n", sinfname); |
| 1330 | } | 1330 | } |
