mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13: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
@ -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…
Reference in New Issue
Block a user