mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Correct encoding bug.
This commit is contained in:
parent
2afe34a138
commit
d2632592d8
@ -30,7 +30,7 @@
|
||||
symbol->option_2 is used to adjust the width of the resulting symbol (i.e. the
|
||||
number of codeword columns not including row start and end data) */
|
||||
|
||||
/* @(#) $Id: pdf417.c,v 1.18 2009/12/20 23:08:04 hooper114 Exp $ */
|
||||
/* @(#) $Id: pdf417.c,v 1.19 2009/12/21 08:16:03 hooper114 Exp $ */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
@ -687,12 +687,6 @@ int pdf417enc(struct zint_symbol *symbol, unsigned char source[], int length)
|
||||
{
|
||||
int codeerr, error_number;
|
||||
|
||||
#ifndef _MSC_VER
|
||||
unsigned char local_source[length + 1];
|
||||
#else
|
||||
unsigned char* local_source = (unsigned char*)_alloca(length + 1);
|
||||
#endif
|
||||
|
||||
error_number = 0;
|
||||
|
||||
if((symbol->option_1 < -1) || (symbol->option_1 > 8)) {
|
||||
@ -707,7 +701,7 @@ int pdf417enc(struct zint_symbol *symbol, unsigned char source[], int length)
|
||||
}
|
||||
|
||||
/* 349 */
|
||||
codeerr = pdf417(symbol, local_source, length);
|
||||
codeerr = pdf417(symbol, source, length);
|
||||
|
||||
/* 352 */
|
||||
if(codeerr != 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user