From ecb0996fd2a3b0539153dd3ef901d137bf498ffe Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 9 Feb 2022 03:27:48 +0100 Subject: utils: Use libplist's plist_from_memory instead of duplicating format detection --- src/utils.c | 6 +----- 1 file changed, 1 insertion(+), 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); -- cgit v1.1-32-gdbae