diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/plist.c | 2 | ||||
| -rw-r--r-- | src/xplist.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plist.c b/src/plist.c index 862a54c..f03e125 100644 --- a/src/plist.c +++ b/src/plist.c | |||
| @@ -395,7 +395,7 @@ static plist_t plist_copy_node(node_t *node) | |||
| 395 | break; | 395 | break; |
| 396 | case PLIST_KEY: | 396 | case PLIST_KEY: |
| 397 | case PLIST_STRING: | 397 | case PLIST_STRING: |
| 398 | newdata->strval = strdup((char *) data->strval); | 398 | newdata->strval = strdup(data->strval); |
| 399 | break; | 399 | break; |
| 400 | case PLIST_ARRAY: | 400 | case PLIST_ARRAY: |
| 401 | if (data->hashtable) { | 401 | if (data->hashtable) { |
diff --git a/src/xplist.c b/src/xplist.c index 2f98983..263d88e 100644 --- a/src/xplist.c +++ b/src/xplist.c | |||
| @@ -1141,7 +1141,7 @@ static void node_from_xml(parse_ctx ctx, plist_t *plist) | |||
| 1141 | } | 1141 | } |
| 1142 | str++; | 1142 | str++; |
| 1143 | } | 1143 | } |
| 1144 | data->intval = strtoull((char*)str, NULL, 0); | 1144 | data->intval = strtoull(str, NULL, 0); |
| 1145 | if (is_negative || (data->intval <= INT64_MAX)) { | 1145 | if (is_negative || (data->intval <= INT64_MAX)) { |
| 1146 | uint64_t v = data->intval; | 1146 | uint64_t v = data->intval; |
| 1147 | if (is_negative) { | 1147 | if (is_negative) { |
