Prevent possible buffer overrun

Spotted by Milton Neal
This commit is contained in:
Robin Stuart 2018-04-06 10:50:19 +01:00
parent 75803e8aa2
commit 68fdae09c3

View File

@ -138,7 +138,7 @@ int mailmark(struct zint_symbol *symbol, unsigned char source[], int length) {
short int b[112]; short int b[112];
short int temp[112]; short int temp[112];
short int cdv[112]; short int cdv[112];
unsigned char data[25]; unsigned char data[26];
int data_top, data_step; int data_top, data_step;
unsigned char check[7]; unsigned char check[7];
short int extender[27]; short int extender[27];