mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
CODE128/EAN14: fix debug printf bar spaces (not NUL-terminated)
This commit is contained in:
parent
e14d9e99d5
commit
9e4ecb638f
@ -712,7 +712,7 @@ INTERNAL int code128(struct zint_symbol *symbol, unsigned char source[], int len
|
|||||||
printf(" %d", values[i]);
|
printf(" %d", values[i]);
|
||||||
}
|
}
|
||||||
printf(" (%d)\n", bar_characters);
|
printf(" (%d)\n", bar_characters);
|
||||||
printf("Barspaces: %s\n", dest);
|
printf("Barspaces: %.*s\n", (int) (d - dest), dest);
|
||||||
}
|
}
|
||||||
#ifdef ZINT_TEST
|
#ifdef ZINT_TEST
|
||||||
if (symbol->debug & ZINT_DEBUG_TEST) {
|
if (symbol->debug & ZINT_DEBUG_TEST) {
|
||||||
@ -951,7 +951,7 @@ INTERNAL int gs1_128_cc(struct zint_symbol *symbol, unsigned char source[], int
|
|||||||
printf(" %d", values[i]);
|
printf(" %d", values[i]);
|
||||||
}
|
}
|
||||||
printf(" (%d)\n", bar_characters);
|
printf(" (%d)\n", bar_characters);
|
||||||
printf("Barspaces: %s\n", dest);
|
printf("Barspaces: %.*s\n", (int) (d - dest), dest);
|
||||||
}
|
}
|
||||||
#ifdef ZINT_TEST
|
#ifdef ZINT_TEST
|
||||||
if (symbol->debug & ZINT_DEBUG_TEST) {
|
if (symbol->debug & ZINT_DEBUG_TEST) {
|
||||||
|
Loading…
Reference in New Issue
Block a user