Skip to content

Commit

Permalink
Revert "Use updated libplist 2.5.0 API"
Browse files Browse the repository at this point in the history
This reverts commit e61817a.
  • Loading branch information
nikias committed May 13, 2024
1 parent 1ee8d0a commit bbf0c65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if test -z $PACKAGE_VERSION; then
fi

dnl Minimum package versions
LIBPLIST_VERSION=2.5.0
LIBPLIST_VERSION=2.3.0

AC_SUBST(LIBIMOBILEDEVICE_GLUE_SO_VERSION)
AC_SUBST(LIBPLIST_VERSION)
Expand Down
4 changes: 2 additions & 2 deletions src/opack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit bbf0c65

Please sign in to comment.