mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-29 22:35:27 -04:00
Free bitmap structure, add clear option, correct KIX Code and fix spelling mistake.
This commit is contained in:
parent
f200517593
commit
b24cf09fe7
5 changed files with 31 additions and 10 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue