From 3e5c8e946dee07fd9596a31b494499b70a14efcd Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 11 Jul 2013 14:10:41 +0200 Subject: use QRcode_encodeString8bit() We do not have string containing null character, so use QRcode_encodeString8bit() instead of QRcode_encodeData(). --- cqrlogo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cqrlogo.c b/cqrlogo.c index 74799bf..c566cd7 100644 --- a/cqrlogo.c +++ b/cqrlogo.c @@ -126,7 +126,7 @@ struct bitmap_t * encode_qrcode (char *text, unsigned int scale, unsigned int bo int i, j, k, l; unsigned char *data; - qrcode = QRcode_encodeData(strlen(text), (unsigned char *)text, 0, level); + qrcode = QRcode_encodeString8bit(text, 0, level); if (qrcode == NULL) return NULL; -- cgit v1.2.3-70-g09d2