diff --git a/backend/library.c b/backend/library.c index 02ebfbc2..f2542c29 100644 --- a/backend/library.c +++ b/backend/library.c @@ -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) {