From 909394478f9b946d2ef672bb743de4c079d08952 Mon Sep 17 00:00:00 2001 From: hooper114 Date: Tue, 16 Dec 2008 07:41:35 +0000 Subject: [PATCH] Correction to Korea Post check digit --- backend/postal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/postal.c b/backend/postal.c index 85b19f3c..5e97c5d3 100644 --- a/backend/postal.c +++ b/backend/postal.c @@ -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);