diff options
Diffstat (limited to 'test/plist_cmp.c')
-rw-r--r-- | test/plist_cmp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/plist_cmp.c b/test/plist_cmp.c index 85b92ee..2af3f63 100644 --- a/test/plist_cmp.c +++ b/test/plist_cmp.c @@ -124,6 +124,9 @@ int main(int argc, char *argv[]) fclose(iplist1); fclose(iplist2); + plist_1[size_in1] = '\0'; + plist_2[size_in2] = '\0'; + if (memcmp(plist_1, "bplist00", 8) == 0) plist_from_bin(plist_1, size_in1, &root_node1); else if (plist_1[0] == '[' || plist_1[0] == '{') |