From be4652fcb903ec9f0a3108ead74498fc1433ac0e Mon Sep 17 00:00:00 2001 From: Robin Stuart Date: Sun, 17 Oct 2010 22:44:57 +0100 Subject: [PATCH] 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 --- backend/dmatrix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/dmatrix.c b/backend/dmatrix.c index b57a610a..90021f7f 100644 --- a/backend/dmatrix.c +++ b/backend/dmatrix.c @@ -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;