Skip to content

Commit 1d628bc

Browse files
committed
bplist: Fix compiler warning with explicit cast
Credit to @ylwango613
1 parent 287e7e7 commit 1d628bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bplist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ static void write_unicode(bytearray_t * bplist, char *val, size_t size)
12221222
size_t items_written = 0;
12231223
uint16_t *unicodestr = NULL;
12241224

1225-
unicodestr = plist_utf8_to_utf16be(val, size, &items_read, &items_written);
1225+
unicodestr = plist_utf8_to_utf16be((const unsigned char *)val, size, &items_read, &items_written);
12261226
write_raw_data(bplist, BPLIST_UNICODE, (uint8_t*)unicodestr, items_written);
12271227
free(unicodestr);
12281228
}

0 commit comments

Comments
 (0)