summaryrefslogtreecommitdiffstats
path: root/src/plist.c
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2008-12-13 19:59:00 +0100
committerGravatar Jonathan Beck2008-12-13 19:59:00 +0100
commit135e43c1767c6d1cc4cad057130bf371a548f648 (patch)
treee656ab13af40905b461ec570c159166f247aec26 /src/plist.c
parent2a514976045c878766dc6975d03b1b3eb1a86eed (diff)
downloadlibplist-135e43c1767c6d1cc4cad057130bf371a548f648.tar.gz
libplist-135e43c1767c6d1cc4cad057130bf371a548f648.tar.bz2
Add sanity check on indexes when building plist tree.
Diffstat (limited to 'src/plist.c')
-rw-r--r--src/plist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plist.c b/src/plist.c
index 1fafd94..a3d3cb2 100644
--- a/src/plist.c
+++ b/src/plist.c
@@ -157,7 +157,7 @@ char compare_node_value(plist_type type, plist_data_t data, void *value, uint64_
res = !wcscmp(data->unicodeval, ((wchar_t *) value));
break;
case PLIST_DATA:
- res = memcmp(data->buff,(char*) value, length );
+ res = memcmp(data->buff, (char *) value, length);
break;
case PLIST_ARRAY:
case PLIST_DICT: