diff options
author | Christian Hesse <mail@eworm.de> | 2013-07-11 14:10:41 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-07-11 14:10:41 +0200 |
commit | 3e5c8e946dee07fd9596a31b494499b70a14efcd (patch) | |
tree | 820bec0419ea620eda40ef979e755c4a7ede1500 | |
parent | 82daa91f1c1d80728dfac10aeb86390bd8179ad5 (diff) | |
download | cqrlogo-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().
-rw-r--r-- | cqrlogo.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |