mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Don't reduce length of input if not cropping BOM
This commit is contained in:
parent
50cbbe391b
commit
e9f14a30e2
@ -821,9 +821,9 @@ void strip_bom(unsigned char *source, int *input_length) {
|
||||
for (i = 3; i < *input_length; i++) {
|
||||
source[i - 3] = source[i];
|
||||
}
|
||||
*input_length -= 3;
|
||||
}
|
||||
}
|
||||
*input_length -= 3;
|
||||
}
|
||||
|
||||
int ZBarcode_Encode(struct zint_symbol *symbol, const unsigned char *source,int in_length) {
|
||||
|
Loading…
Reference in New Issue
Block a user