summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libass/ass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass.c b/libass/ass.c
index df65dbda46..4b803db95d 100644
--- a/libass/ass.c
+++ b/libass/ass.c
@@ -855,7 +855,7 @@ static char* sub_recode(char* data, size_t size, char* codepage)
rc = iconv(icdsc, &ip, &ileft, &op, &oleft);
if (rc == (size_t)(-1)) {
if (errno == E2BIG) {
- int offset = op - outbuf;
+ size_t offset = op - outbuf;
outbuf = (char*)realloc(outbuf, osize + size);
op = outbuf + offset;
osize += size;