diff options
Diffstat (limited to 'libfontenc/src')
-rw-r--r-- | libfontenc/src/encparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libfontenc/src/encparse.c b/libfontenc/src/encparse.c index 7b8a2d5e2..bf7de5fc4 100644 --- a/libfontenc/src/encparse.c +++ b/libfontenc/src/encparse.c @@ -427,7 +427,7 @@ setCode(unsigned from, unsigned to, unsigned row_size, } } else if(*encsize <= index) { *encsize = 0x10000; - if((newenc = realloc(enc, *encsize))==NULL) + if((newenc = realloc(*enc, (*encsize) * sizeof(unsigned short)))==NULL) return 1; *enc = newenc; } |