summaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2022-02-09 03:27:48 +0100
committerGravatar Nikias Bassen2022-02-09 03:27:48 +0100
commitecb0996fd2a3b0539153dd3ef901d137bf498ffe (patch)
treef652c13d69186374b900c6fe1966fad69a70ced1 /src/utils.c
parent90fc3833203192ff5a6009d339454b0265b4efc1 (diff)
downloadlibimobiledevice-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/utils.c')
-rw-r--r--src/utils.c6
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);