summaryrefslogtreecommitdiffstats
path: root/src/plist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plist.c')
-rw-r--r--src/plist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plist.c b/src/plist.c
index bdec7a8..169ed07 100644
--- a/src/plist.c
+++ b/src/plist.c
@@ -121,6 +121,7 @@ static plist_t plist_add_sub_element(plist_t node, plist_type type, const void *
data->length = items_written;
break;
case PLIST_DATA:
+ data->buff = (uint8_t*)malloc(length);
memcpy(data->buff, value, length);
break;
case PLIST_DATE: