diff options
author | Nikias Bassen | 2024-05-13 19:47:35 +0200 |
---|---|---|
committer | Nikias Bassen | 2024-05-13 19:47:35 +0200 |
commit | bbf0c65cdeeef3f82d0533d356fd756232c4e4a7 (patch) | |
tree | a82fe94fe1bb5c8c868b4705f8388e138b4ca8ef /src/opack.c | |
parent | 1ee8d0ac233fb510260dbf3a647fbd02f1a92825 (diff) | |
download | libimobiledevice-glue-bbf0c65cdeeef3f82d0533d356fd756232c4e4a7.tar.gz libimobiledevice-glue-bbf0c65cdeeef3f82d0533d356fd756232c4e4a7.tar.bz2 |
Revert "Use updated libplist 2.5.0 API"
This reverts commit e61817ae57aac7252499268a9276692a32dc3e01.
Diffstat (limited to 'src/opack.c')
-rw-r--r-- | src/opack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opack.c b/src/opack.c index 8f6ddfa..8a9264a 100644 --- a/src/opack.c +++ b/src/opack.c @@ -199,7 +199,7 @@ static void opack_encode_node(plist_t node, struct char_buf* cbuf) } break; case PLIST_DATA: { uint64_t len = 0; - const uint8_t* data = plist_get_data_ptr(node, &len); + const char* data = plist_get_data_ptr(node, &len); if (len > 0x20) { if (len > 0xFF) { if (len > 0xFFFF) { @@ -379,7 +379,7 @@ static int opack_decode_obj(unsigned char** p, unsigned char* end, plist_t* plis *p = end; return -1; } - *plist_out = plist_new_data(*p, dlen); + *plist_out = plist_new_data((const char*)*p, dlen); (*p)+=dlen; } else if (type >= 0xE0 && type <= 0xEF) { /* dictionary */ |