summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plist.c b/src/plist.c
index ee79cf4..dcaf601 100644
--- a/src/plist.c
+++ b/src/plist.c
@@ -650,6 +650,8 @@ int plist_data_compare(const void *a, const void *b)
return FALSE;
case PLIST_DATA:
+ if (val_a->length != val_b->length)
+ return FALSE;
if (!memcmp(val_a->buff, val_b->buff, val_a->length))
return TRUE;
else