mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-18 10:27:09 +00:00
A couple of small bugfixes were found by the PIRAmIDE project.
This commit is contained in:
@@ -1982,7 +1982,7 @@ int rssexpanded(struct zint_symbol *symbol, unsigned char source[], int src_len)
|
||||
elements in the data characters. */
|
||||
checksum = 0;
|
||||
for(i = 0; i < data_chars; i++) {
|
||||
row = weight_rows[(((data_chars - 3) / 2) * 21) + i];
|
||||
row = weight_rows[(((data_chars - 2) / 2) * 21) + i];
|
||||
for(j = 0; j < 8; j++) {
|
||||
checksum += (char_widths[i][j] * checksum_weight_exp[(row * 8) + j]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user