Skip to content

Commit

Permalink
Revert "Fix compilation with updated libplist API"
Browse files Browse the repository at this point in the history
This reverts commit 9fdf17c.
  • Loading branch information
nikias committed May 13, 2024
1 parent 8148487 commit 4323f9a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ideviceinstaller.c
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,7 @@ int main(int argc, char **argv)
size_t flen = 0;
zbuf = buf_from_file(extmeta, &flen);
if (zbuf && flen) {
meta = plist_new_data((uint8_t*)zbuf, flen);
meta = plist_new_data(zbuf, flen);
plist_from_memory(zbuf, flen, &meta_dict, NULL);
free(zbuf);
}
Expand All @@ -1231,7 +1231,7 @@ int main(int argc, char **argv)
if (!meta && !meta_dict) {
/* extract iTunesMetadata.plist from package */
if (zip_get_contents(zf, ITUNES_METADATA_PLIST_FILENAME, 0, &zbuf, &len) == 0) {
meta = plist_new_data((uint8_t*)zbuf, len);
meta = plist_new_data(zbuf, len);
plist_from_memory(zbuf, len, &meta_dict, NULL);
}
if (!meta_dict) {
Expand Down Expand Up @@ -1304,7 +1304,7 @@ int main(int argc, char **argv)
size_t flen = 0;
zbuf = buf_from_file(extsinf, &flen);
if (zbuf && flen) {
sinf = plist_new_data((uint8_t*)zbuf, flen);
sinf = plist_new_data(zbuf, flen);
free(zbuf);
} else {
fprintf(stderr, "WARNING: could not load external SINF %s!\n", extsinf);
Expand All @@ -1324,7 +1324,7 @@ int main(int argc, char **argv)
zbuf = NULL;
len = 0;
if (zip_get_contents(zf, sinfname, 0, &zbuf, &len) == 0) {
sinf = plist_new_data((uint8_t*)zbuf, len);
sinf = plist_new_data(zbuf, len);
} else {
fprintf(stderr, "WARNING: could not locate %s in archive!\n", sinfname);
}
Expand Down

0 comments on commit 4323f9a

Please sign in to comment.