1
0
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:
hooper114
2010-03-29 20:57:12 +00:00
parent 3d1f2dc29c
commit 4782ebb76d
2 changed files with 2 additions and 2 deletions

View File

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