diff options
| author | 2026-01-22 13:29:11 +0100 | |
|---|---|---|
| committer | 2026-01-22 13:29:11 +0100 | |
| commit | 1d628bc5b051ba941389a13aa94983d5d273618b (patch) | |
| tree | 0a89d21dcc7922e34acbde0467f621003d6df6d0 /src/bplist.c | |
| parent | 287e7e7fd6f221985a325bef66b8a81e8dda1062 (diff) | |
| download | libplist-1d628bc5b051ba941389a13aa94983d5d273618b.tar.gz libplist-1d628bc5b051ba941389a13aa94983d5d273618b.tar.bz2 | |
Credit to @ylwango613
Diffstat (limited to 'src/bplist.c')
| -rw-r--r-- | src/bplist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bplist.c b/src/bplist.c index e542d6c..f0c44fc 100644 --- a/src/bplist.c +++ b/src/bplist.c @@ -1222,7 +1222,7 @@ static void write_unicode(bytearray_t * bplist, char *val, size_t size) size_t items_written = 0; uint16_t *unicodestr = NULL; - unicodestr = plist_utf8_to_utf16be(val, size, &items_read, &items_written); + unicodestr = plist_utf8_to_utf16be((const unsigned char *)val, size, &items_read, &items_written); write_raw_data(bplist, BPLIST_UNICODE, (uint8_t*)unicodestr, items_written); free(unicodestr); } |
