Free bitmap structure, add clear option, correct KIX Code and fix spelling mistake.

This commit is contained in:
hooper114 2009-12-02 09:09:45 +00:00
parent f200517593
commit b24cf09fe7
5 changed files with 31 additions and 10 deletions

View file

@ -366,7 +366,7 @@ int kix_code(struct zint_symbol *symbol, unsigned char source[], int length)
char height_pattern[50], localstr[13];
unsigned int loopey;
int writer, i, h;
int error_number, zeroes;
int error_number, /* zeroes; */
strcpy(height_pattern, "");
error_number = 0;
@ -383,9 +383,10 @@ int kix_code(struct zint_symbol *symbol, unsigned char source[], int length)
}
/* Add leading zeroes */
zeroes = 11 - length;
/* zeroes = 11 - length;
memset(localstr, '0', zeroes);
strcpy(localstr + zeroes, (char *)source);
strcpy(localstr + zeroes, (char *)source);*/
strcpy(localstr, (char *)source);
/* Encode data */
for (i = 0; i < 11; i++) {