mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-17 18:07:02 +00:00
library: move check for valid UTF-8 after de-escaping
CODE128: fix bad index 0 -> i in `c128_glyph_count()`
This commit is contained in:
@@ -346,7 +346,7 @@ static int c128_glyph_count(const unsigned char source[], const int length, cons
|
||||
for (i = 0; i < length; i++) {
|
||||
if (set[i] != current_set) {
|
||||
/* Latch different code set */
|
||||
switch (set[0]) {
|
||||
switch (set[i]) {
|
||||
case 'A':
|
||||
case 'b': /* Manual switching can cause immediate shift */
|
||||
if (current_set != 'A') {
|
||||
|
||||
Reference in New Issue
Block a user