diff options
| -rw-r--r-- | src/plist.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plist.c b/src/plist.c index 143418d..4d98fd2 100644 --- a/src/plist.c +++ b/src/plist.c | |||
| @@ -150,11 +150,12 @@ static void plist_copy_node(GNode * node, gpointer parent_node_ptr) | |||
| 150 | memcpy(newdata, data, sizeof(struct plist_data_s)); | 150 | memcpy(newdata, data, sizeof(struct plist_data_s)); |
| 151 | 151 | ||
| 152 | plist_type node_type = plist_get_node_type(node); | 152 | plist_type node_type = plist_get_node_type(node); |
| 153 | if (node_type == PLIST_DATA || node_type == PLIST_STRING) { | 153 | if (node_type == PLIST_DATA || node_type == PLIST_STRING || node_type == PLIST_KEY) { |
| 154 | switch (node_type) { | 154 | switch (node_type) { |
| 155 | case PLIST_DATA: | 155 | case PLIST_DATA: |
| 156 | newdata->buff = (uint8_t *) malloc(data->length); | 156 | newdata->buff = (uint8_t *) malloc(data->length); |
| 157 | memcpy(newdata->buff, data->buff, data->length); | 157 | memcpy(newdata->buff, data->buff, data->length); |
| 158 | case PLIST_KEY: | ||
| 158 | case PLIST_STRING: | 159 | case PLIST_STRING: |
| 159 | newdata->strval = strdup((char *) data->strval); | 160 | newdata->strval = strdup((char *) data->strval); |
| 160 | default: | 161 | default: |
