mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
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:
parent
2853b473f6
commit
be4652fcb9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user