mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-20 10:15:10 -04:00
UTF duplication error
Removes error duplicating UTF data when using ECI 26
This commit is contained in:
parent
7cb5eec35a
commit
ae57d413bf
1 changed files with 3 additions and 3 deletions
|
@ -44,13 +44,13 @@ int utf_to_eci(const int eci, const unsigned char source[], unsigned char dest[]
|
||||||
int out_posn;
|
int out_posn;
|
||||||
int ext;
|
int ext;
|
||||||
int done;
|
int done;
|
||||||
|
|
||||||
if (eci == 26) {
|
if (eci == 26) {
|
||||||
|
int in_length = (int) *length;
|
||||||
/* Unicode mode, do not process - just copy data across */
|
/* Unicode mode, do not process - just copy data across */
|
||||||
for (in_posn = 0; in_posn < *length; in_posn++) {
|
for (in_posn = 0; in_posn < in_length; in_posn++) {
|
||||||
dest[in_posn] = source[in_posn];
|
dest[in_posn] = source[in_posn];
|
||||||
}
|
}
|
||||||
dest[*length] = '\0';
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue