MSVC corrections thanks to Norbert Szabó

This commit is contained in:
hooper114 2009-08-06 19:44:30 +00:00
parent 776154d3fe
commit f48a8603e8
5 changed files with 39 additions and 29 deletions

View file

@ -771,7 +771,6 @@ 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 inputlen, i;
inputlen = ustrlen(source);
unsigned char binary[2000];
int binlen;
int symbolsize, optionsize, calcsize;
@ -779,6 +778,7 @@ int data_matrix_200(struct zint_symbol *symbol, unsigned char source[])
int H, W, FH, FW, datablock, bytes, rsblock;
int last_mode;
unsigned char *grid = 0;
inputlen = ustrlen(source);
binlen = dm200encode(symbol, source, binary, &last_mode);
if(binlen == 0) {