From 695df7572b03bf1e05a317f0e36a9f29cb79f71f Mon Sep 17 00:00:00 2001 From: hooper114 Date: Mon, 5 Apr 2010 04:59:13 +0000 Subject: [PATCH] Another RSS padding bug! --- backend/rss.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/rss.c b/backend/rss.c index a6e66bed..ce5daead 100644 --- a/backend/rss.c +++ b/backend/rss.c @@ -1882,7 +1882,9 @@ int rss_binary_string(struct zint_symbol *symbol, char source[], char binary_str } else { strcpy(padstring, "001000010000"); } - padstring[12 - remainder] = '\0'; + remainder = 12 - remainder; + if(remainder == 12) { remainder = 0; } + padstring[remainder] = '\0'; concat(binary_string, padstring); /* Patch variable length symbol bit field */