diff options
author | Nikias Bassen | 2022-02-09 03:27:48 +0100 |
---|---|---|
committer | Nikias Bassen | 2022-02-09 03:27:48 +0100 |
commit | ecb0996fd2a3b0539153dd3ef901d137bf498ffe (patch) | |
tree | f652c13d69186374b900c6fe1966fad69a70ced1 /src | |
parent | 90fc3833203192ff5a6009d339454b0265b4efc1 (diff) | |
download | libimobiledevice-glue-ecb0996fd2a3b0539153dd3ef901d137bf498ffe.tar.gz libimobiledevice-glue-ecb0996fd2a3b0539153dd3ef901d137bf498ffe.tar.bz2 |
utils: Use libplist's plist_from_memory instead of duplicating format detection
Diffstat (limited to 'src')
-rw-r--r-- | src/utils.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/utils.c b/src/utils.c index 7b10a08..af12aa5 100644 --- a/src/utils.c +++ b/src/utils.c @@ -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); |