Skip to content

Commit

Permalink
utils: Use libplist's plist_from_memory instead of duplicating format…
Browse files Browse the repository at this point in the history
… detection
  • Loading branch information
nikias committed Feb 9, 2022
1 parent 90fc383 commit ecb0996
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,7 @@ LIBIMOBILEDEVICE_GLUE_API int plist_read_from_filename(plist_t *plist, const cha
return 0;
}

if ((length > 8) && (memcmp(buffer, "bplist00", 8) == 0)) {
plist_from_bin(buffer, length, plist);
} else {
plist_from_xml(buffer, length, plist);
}
plist_from_memory(buffer, length, plist);

free(buffer);

Expand Down

0 comments on commit ecb0996

Please sign in to comment.