diff options
| author | 2017-01-18 15:46:27 +0100 | |
|---|---|---|
| committer | 2017-01-18 15:46:27 +0100 | |
| commit | b32194d96ee4a54f07d98042bd204e52774a6a51 (patch) | |
| tree | edf2352320871d8ebac4d09d727867b2f3a67245 /tools/plistutil.c | |
| parent | 7391a506352c009fe044dead7baad9e22dd279ee (diff) | |
| download | libplist-b32194d96ee4a54f07d98042bd204e52774a6a51.tar.gz libplist-b32194d96ee4a54f07d98042bd204e52774a6a51.tar.bz2 | |
plistutil: Use plist_is_binary() to check for binary plist data
Diffstat (limited to 'tools/plistutil.c')
| -rw-r--r-- | tools/plistutil.c | 2 |
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[]) | |||
| 140 | fclose(iplist); | 140 | fclose(iplist); |
| 141 | 141 | ||
| 142 | // convert from binary to xml or vice-versa | 142 | // convert from binary to xml or vice-versa |
| 143 | if (memcmp(plist_entire, "bplist00", 8) == 0) | 143 | if (plist_is_binary(plist_entire, read_size)) |
| 144 | { | 144 | { |
| 145 | plist_from_bin(plist_entire, read_size, &root_node); | 145 | plist_from_bin(plist_entire, read_size, &root_node); |
| 146 | plist_to_xml(root_node, &plist_out, &size); | 146 | plist_to_xml(root_node, &plist_out, &size); |
