summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2017-01-18 15:46:27 +0100
committerGravatar Nikias Bassen2017-01-18 15:46:27 +0100
commitb32194d96ee4a54f07d98042bd204e52774a6a51 (patch)
treeedf2352320871d8ebac4d09d727867b2f3a67245 /tools
parent7391a506352c009fe044dead7baad9e22dd279ee (diff)
downloadlibplist-b32194d96ee4a54f07d98042bd204e52774a6a51.tar.gz
libplist-b32194d96ee4a54f07d98042bd204e52774a6a51.tar.bz2
plistutil: Use plist_is_binary() to check for binary plist data
Diffstat (limited to 'tools')
-rw-r--r--tools/plistutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/plistutil.c b/tools/plistutil.c
index e943e76..7652bdc 100644
--- a/tools/plistutil.c
+++ b/tools/plistutil.c
@@ -140,7 +140,7 @@ int main(int argc, char *argv[])
fclose(iplist);
// convert from binary to xml or vice-versa
- if (memcmp(plist_entire, "bplist00", 8) == 0)
+ if (plist_is_binary(plist_entire, read_size))
{
plist_from_bin(plist_entire, read_size, &root_node);
plist_to_xml(root_node, &plist_out, &size);