aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;