summaryrefslogtreecommitdiff
path: root/src/encparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/encparse.c')
-rw-r--r--src/encparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encparse.c b/src/encparse.c
index cbcac80..ee18b3f 100644
--- a/src/encparse.c
+++ b/src/encparse.c
@@ -426,7 +426,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;
}