summaryrefslogtreecommitdiffstats
path: root/src/xplist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xplist.c')
-rw-r--r--src/xplist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xplist.c b/src/xplist.c
index d8f6458..cf5d818 100644
--- a/src/xplist.c
+++ b/src/xplist.c
@@ -162,7 +162,7 @@ static int node_to_xml(node_t* node, bytearray_t **outbuf, uint32_t depth)
162 } 162 }
163 break; 163 break;
164 164
165 case PLIST_UINT: 165 case PLIST_INT:
166 tag = XPLIST_INT; 166 tag = XPLIST_INT;
167 tag_len = XPLIST_INT_LEN; 167 tag_len = XPLIST_INT_LEN;
168 val = (char*)malloc(64); 168 val = (char*)malloc(64);
@@ -479,7 +479,7 @@ static int node_estimate_size(node_t *node, uint64_t *size, uint32_t depth)
479 *size += data->length; 479 *size += data->length;
480 *size += (XPLIST_KEY_LEN << 1) + 6; 480 *size += (XPLIST_KEY_LEN << 1) + 6;
481 break; 481 break;
482 case PLIST_UINT: 482 case PLIST_INT:
483 if (data->length == 16) { 483 if (data->length == 16) {
484 *size += num_digits_u(data->intval); 484 *size += num_digits_u(data->intval);
485 } else { 485 } else {
@@ -1194,7 +1194,7 @@ static int node_from_xml(parse_ctx ctx, plist_t *plist)
1194 data->intval = 0; 1194 data->intval = 0;
1195 data->length = 8; 1195 data->length = 8;
1196 } 1196 }
1197 data->type = PLIST_UINT; 1197 data->type = PLIST_INT;
1198 } else if (!strcmp(tag, XPLIST_REAL)) { 1198 } else if (!strcmp(tag, XPLIST_REAL)) {
1199 if (!is_empty) { 1199 if (!is_empty) {
1200 text_part_t first_part = { NULL, 0, 0, NULL }; 1200 text_part_t first_part = { NULL, 0, 0, NULL };