mirror of
https://git.code.sf.net/p/zint/code
synced 2026-05-14 18:13:53 +00:00
AUSPOST: support Null FCC (DPID all zeroes); TODO: BWIPP support
CODE128: properly fix not switching before FNC1 in 2nd position after alpha (commit [7b0767]) PLANET/KIX: adapt POSTNET to cater for both general: use static strings to save a few bytes (start/stop in particular); various other code fiddles postal: move tables into funcs
This commit is contained in:
@@ -90,10 +90,12 @@ static int c25_common(struct zint_symbol *symbol, const unsigned char source[],
|
||||
d += start_length;
|
||||
|
||||
if (is_matrix) {
|
||||
/* Standard, Data Logic */
|
||||
for (i = 0; i < length; i++, d += 6) {
|
||||
memcpy(d, C25MatrixTable[local_source[i] - '0'], 6);
|
||||
}
|
||||
} else {
|
||||
/* IATA, Industrial */
|
||||
for (i = 0; i < length; i++, d += 10) {
|
||||
memcpy(d, C25IndustTable[local_source[i] - '0'], 10);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user