mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
End of string bugfix
This commit is contained in:
parent
94038468be
commit
798db42416
@ -637,42 +637,42 @@ int dm200encode(struct zint_symbol *symbol, unsigned char source[], unsigned cha
|
|||||||
/* Empty buffers */
|
/* Empty buffers */
|
||||||
if(c40_p == 2) {
|
if(c40_p == 2) {
|
||||||
target[tp] = 254; tp++; /* unlatch */
|
target[tp] = 254; tp++; /* unlatch */
|
||||||
|
target[tp] = source[inputlen - 2] + 1; tp++;
|
||||||
target[tp] = source[inputlen - 1] + 1; tp++;
|
target[tp] = source[inputlen - 1] + 1; tp++;
|
||||||
target[tp] = source[inputlen] + 1; tp++;
|
|
||||||
concat(binary, " ");
|
concat(binary, " ");
|
||||||
current_mode = DM_ASCII;
|
current_mode = DM_ASCII;
|
||||||
}
|
}
|
||||||
if(c40_p == 1) {
|
if(c40_p == 1) {
|
||||||
target[tp] = 254; tp++; /* unlatch */
|
target[tp] = 254; tp++; /* unlatch */
|
||||||
target[tp] = source[inputlen] + 1; tp++;
|
target[tp] = source[inputlen - 1] + 1; tp++;
|
||||||
concat(binary, " ");
|
concat(binary, " ");
|
||||||
current_mode = DM_ASCII;
|
current_mode = DM_ASCII;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(text_p == 2) {
|
if(text_p == 2) {
|
||||||
target[tp] = 254; tp++; /* unlatch */
|
target[tp] = 254; tp++; /* unlatch */
|
||||||
|
target[tp] = source[inputlen - 2] + 1; tp++;
|
||||||
target[tp] = source[inputlen - 1] + 1; tp++;
|
target[tp] = source[inputlen - 1] + 1; tp++;
|
||||||
target[tp] = source[inputlen] + 1; tp++;
|
|
||||||
concat(binary, " ");
|
concat(binary, " ");
|
||||||
current_mode = DM_ASCII;
|
current_mode = DM_ASCII;
|
||||||
}
|
}
|
||||||
if(text_p == 1) {
|
if(text_p == 1) {
|
||||||
target[tp] = 254; tp++; /* unlatch */
|
target[tp] = 254; tp++; /* unlatch */
|
||||||
target[tp] = source[inputlen] + 1; tp++;
|
target[tp] = source[inputlen - 1] + 1; tp++;
|
||||||
concat(binary, " ");
|
concat(binary, " ");
|
||||||
current_mode = DM_ASCII;
|
current_mode = DM_ASCII;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(x12_p == 2) {
|
if(x12_p == 2) {
|
||||||
target[tp] = 254; tp++; /* unlatch */
|
target[tp] = 254; tp++; /* unlatch */
|
||||||
|
target[tp] = source[inputlen - 2] + 1; tp++;
|
||||||
target[tp] = source[inputlen - 1] + 1; tp++;
|
target[tp] = source[inputlen - 1] + 1; tp++;
|
||||||
target[tp] = source[inputlen] + 1; tp++;
|
|
||||||
concat(binary, " ");
|
concat(binary, " ");
|
||||||
current_mode = DM_ASCII;
|
current_mode = DM_ASCII;
|
||||||
}
|
}
|
||||||
if(x12_p == 1) {
|
if(x12_p == 1) {
|
||||||
target[tp] = 254; tp++; /* unlatch */
|
target[tp] = 254; tp++; /* unlatch */
|
||||||
target[tp] = source[inputlen] + 1; tp++;
|
target[tp] = source[inputlen - 1] + 1; tp++;
|
||||||
concat(binary, " ");
|
concat(binary, " ");
|
||||||
current_mode = DM_ASCII;
|
current_mode = DM_ASCII;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user