Remove memory allocation bug

Slightly expands the size of memory allocated for data to go into Data Matrix
symbols, correcting a bug reported by SCOPE GmbH
This commit is contained in:
Robin Stuart 2010-10-17 22:44:57 +01:00
parent 2853b473f6
commit be4652fcb9

View File

@ -764,7 +764,7 @@ void add_tail(unsigned char target[], int tp, int tail_length, int last_mode)
int data_matrix_200(struct zint_symbol *symbol, unsigned char source[], int length)
{
int inputlen, i;
unsigned char binary[2000];
unsigned char binary[2200];
int binlen;
int symbolsize, optionsize, calcsize;
int taillength, error_number = 0;