mirror of
https://git.code.sf.net/p/zint/code
synced 2026-01-27 13:55:57 +00:00
Correction to Korea Post check digit
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user