bug-barcode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] fix format not a string literal"


From: Dong Xu
Subject: [PATCH] fix format not a string literal"
Date: Wed, 8 Sep 2021 19:09:05 +0000

---
 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: "));
-- 
2.33.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]