1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-01-08 20:41:59 +00:00

Correction to Korea Post check digit

This commit is contained in:
hooper114
2008-12-16 07:41:35 +00:00
parent 4d9aefec94
commit 909394478f

View File

@@ -230,6 +230,7 @@ int korea_post(struct zint_symbol *symbol, unsigned char source[])
total += ctoi(localstr[loop]);
}
check = 10 - (total % 10);
if(check == 10) { check = 0; }
checkstr[0] = itoc(check);
checkstr[1] = '\0';
concat(localstr, checkstr);