aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-07-12 08:16:00 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-07-12 08:16:00 +0200
commitde222eb1663a5263afd02f4eeb38ce43749442da (patch)
tree1ca26e664888ef3d0c14bbd26098c4d550074f74
parent3e5c8e946dee07fd9596a31b494499b70a14efcd (diff)
downloadcqrlogo-de222eb1663a5263afd02f4eeb38ce43749442da.tar.gz
cqrlogo-de222eb1663a5263afd02f4eeb38ce43749442da.tar.zst
add commit about error condition
-rw-r--r--cqrlogo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cqrlogo.c b/cqrlogo.c
index c566cd7..927b5c3 100644
--- a/cqrlogo.c
+++ b/cqrlogo.c
@@ -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;