Commit b32194d9 authored by Nikias Bassen's avatar Nikias Bassen

plistutil: Use plist_is_binary() to check for binary plist data

parent 7391a506
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment