Valgrind fixes

This commit is contained in:
hooper114 2009-01-25 19:48:06 +00:00
parent a388575c8d
commit f1a60e5e51
2 changed files with 2 additions and 1 deletions

View File

@ -1021,6 +1021,7 @@ int aztec(struct zint_symbol *symbol, unsigned char source[])
/* Now add the symbol descriptor */
memset(desc_data,0,4);
memset(desc_ecc,0,6);
memset(descriptor,0,42);
if(compact) {
/* The first 2 bits represent the number of layers minus 1 */

View File

@ -229,7 +229,7 @@ int code16k(struct zint_symbol *symbol, unsigned char source[])
}
/* We have a problem with FNC1 in Code Set C to resolve */
for(i = 0; i < read; i++) {
for(i = 0; i < input_length; i++) {
if((set[i] == 'C') && (source[i] == '[')) {
int c_count;