diff options
author | Christian Hesse <mail@eworm.de> | 2013-07-12 08:16:00 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-07-12 08:16:00 +0200 |
commit | de222eb1663a5263afd02f4eeb38ce43749442da (patch) | |
tree | 1ca26e664888ef3d0c14bbd26098c4d550074f74 /cqrlogo.c | |
parent | 3e5c8e946dee07fd9596a31b494499b70a14efcd (diff) | |
download | cqrlogo-de222eb1663a5263afd02f4eeb38ce43749442da.tar.gz cqrlogo-de222eb1663a5263afd02f4eeb38ce43749442da.tar.zst |
add commit about error condition
Diffstat (limited to 'cqrlogo.c')
-rw-r--r-- | cqrlogo.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -128,6 +128,9 @@ struct bitmap_t * encode_qrcode (char *text, unsigned int scale, unsigned int bo qrcode = QRcode_encodeString8bit(text, 0, level); + /* this happens if the string is too long + * possibly we have an URL (referer) that is too long, so the code + * automatically falls back to http_server (see main()) */ if (qrcode == NULL) return NULL; |