mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-18 00:54:36 -04:00
Include string terminator when keeping track of b256 encoded characters
bug report and patch by brunt, ticket #48
This commit is contained in:
parent
1d503c54fe
commit
08aefa6aea
1 changed files with 1 additions and 1 deletions
|
@ -250,7 +250,7 @@ static void dminsert(char binary_string[], const int posn, const char newbit) {
|
|||
int i, end;
|
||||
|
||||
end = (int) strlen(binary_string);
|
||||
for (i = end; i > posn; i--) {
|
||||
for (i = end + 1; i > posn; i--) {
|
||||
binary_string[i] = binary_string[i - 1];
|
||||
}
|
||||
binary_string[posn] = newbit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue