mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Fixed bug introduced in bfb183e5df
with utf8 input be trucated at length - 3
This commit is contained in:
parent
6b1421b895
commit
3bbc188217
@ -787,10 +787,10 @@ void strip_bom(unsigned char *source, int *input_length) {
|
|||||||
for (i = 3; i < *input_length; i++) {
|
for (i = 3; i < *input_length; i++) {
|
||||||
source[i - 3] = source[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) {
|
int ZBarcode_Encode(struct zint_symbol *symbol, const unsigned char *source,int in_length) {
|
||||||
int error_number, error_buffer, i;
|
int error_number, error_buffer, i;
|
||||||
|
Loading…
Reference in New Issue
Block a user