summaryrefslogtreecommitdiffstats
path: root/cqrlogo.c
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-07-11 14:10:41 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-07-11 14:10:41 +0200
commit3e5c8e946dee07fd9596a31b494499b70a14efcd (patch)
tree820bec0419ea620eda40ef979e755c4a7ede1500 /cqrlogo.c
parent82daa91f1c1d80728dfac10aeb86390bd8179ad5 (diff)
downloadcqrlogo-0.2.3.tar.gz
cqrlogo-0.2.3.tar.zst
use QRcode_encodeString8bit()0.2.3
We do not have string containing null character, so use QRcode_encodeString8bit() instead of QRcode_encodeData().
Diffstat (limited to 'cqrlogo.c')
-rw-r--r--cqrlogo.c2
1 files changed, 1 insertions, 1 deletions
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;