From 0a340a7ca2aa31c4e5a77cb1ac19642a832a69f6 Mon Sep 17 00:00:00 2001 From: Robin Stuart Date: Tue, 12 Jan 2016 19:42:41 +0000 Subject: [PATCH] Calculate correct number of codeblocks for DataBar ExpStack --- backend/rss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/rss.c b/backend/rss.c index 1a9e199c..540d6f5b 100644 --- a/backend/rss.c +++ b/backend/rss.c @@ -2082,7 +2082,7 @@ int rssexpanded(struct zint_symbol *symbol, unsigned char source[], int src_len) * [01]90614141999996[10]1234222222222221 * Patch by Daniel Frede */ - codeblocks = (data_chars + 1) / 2 + 1; + codeblocks = (data_chars + 1) / 2 + ((data_chars + 1) % 2); if((symbol->option_2 < 1) || (symbol->option_2 > 10)) { symbol->option_2 = 2;