mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Correction to Korea Post check digit
This commit is contained in:
parent
4d9aefec94
commit
909394478f
@ -230,6 +230,7 @@ int korea_post(struct zint_symbol *symbol, unsigned char source[])
|
|||||||
total += ctoi(localstr[loop]);
|
total += ctoi(localstr[loop]);
|
||||||
}
|
}
|
||||||
check = 10 - (total % 10);
|
check = 10 - (total % 10);
|
||||||
|
if(check == 10) { check = 0; }
|
||||||
checkstr[0] = itoc(check);
|
checkstr[0] = itoc(check);
|
||||||
checkstr[1] = '\0';
|
checkstr[1] = '\0';
|
||||||
concat(localstr, checkstr);
|
concat(localstr, checkstr);
|
||||||
|
Loading…
Reference in New Issue
Block a user