mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-22 11:15:16 -04:00
Include terminator in esc processed string
Attempts to fix #89 reported by Matt Johnson
This commit is contained in:
parent
670000b7ea
commit
782a3a6f39
1 changed files with 1 additions and 0 deletions
|
@ -874,6 +874,7 @@ int escape_char_process(struct zint_symbol *symbol, unsigned char *input_string,
|
||||||
} while (in_posn < *length);
|
} while (in_posn < *length);
|
||||||
|
|
||||||
memcpy(input_string, escaped_string, out_posn);
|
memcpy(input_string, escaped_string, out_posn);
|
||||||
|
input_string[out_posn] = '\0';
|
||||||
*length = out_posn;
|
*length = out_posn;
|
||||||
|
|
||||||
error_number = 0;
|
error_number = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue