summaryrefslogtreecommitdiff
blob: 63b49d25c0587ca52dd4a36d4a23cfbb517bd61c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Taken from: https://lists.gnu.org/archive/html/bug-barcode/2021-09/msg00000.html
Author: https://lists.gnu.org/archive/html/bug-barcode/2021-09/msg00000.html
---
 plessey.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plessey.c b/plessey.c
index 2f59e39..3089a3c 100644
--- a/plessey.c
+++ b/plessey.c
@@ -149,7 +149,7 @@ int Barcode_pls_encode(struct Barcode_Item *bc)
                         checkptr[i+j] ^= check[j];
     }
     for (i = 0; i < 8; i++) {
-        sprintf(ptr, patterns[checkptr[strlen(text) * 4 + i]]);
+        sprintf(ptr, "%s", patterns[checkptr[strlen(text) * 4 + i]]);
 	ptr += 2;
     }
     fprintf(stderr, _("CRC: "));