diff --git a/pdfio-token.c b/pdfio-token.c index 49ece38..4819547 100644 --- a/pdfio-token.c +++ b/pdfio-token.c @@ -397,7 +397,7 @@ _pdfioTokenRead(_pdfio_token_t *tb, // I - Token buffer/stack { // UTF-16 string, convert to UTF-8... PDFIO_DEBUG("_pdfioTokenRead: Converting string to UTF-8.\n", stderr); - _pdfio_utf16cpy(buffer + 1, (unsigned char *)buffer + 1, bufptr - buffer - 1, bufsize - 1); + _pdfio_utf16cpy(buffer + 1, (unsigned char *)buffer + 1, (size_t)(bufptr - buffer - 1), bufsize - 1); PDFIO_DEBUG("_pdfioTokenRead: Read '%s'.\n", buffer); return (true); diff --git a/ttf b/ttf index 667760a..c86b7c3 160000 --- a/ttf +++ b/ttf @@ -1 +1 @@ -Subproject commit 667760a156fe3248f7dff1e2d4294627abdf6bfb +Subproject commit c86b7c35d8f90b098c1d855f3ca103a3c1dbdb0a