Commit 24823e83 authored by Nikias Bassen's avatar Nikias Bassen Committed by Jonathan Beck

Fix uninitialized buffer.

parent dbfbb78d
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment