1
0
mirror of https://git.code.sf.net/p/zint/code synced 2025-12-18 10:27:09 +00:00

Include string terminator when keeping track of b256 encoded characters

bug report and patch by brunt, ticket #48
This commit is contained in:
Robin Stuart
2016-11-26 11:38:00 +00:00
parent 1d503c54fe
commit 08aefa6aea

View File

@@ -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;