From de222eb1663a5263afd02f4eeb38ce43749442da Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 12 Jul 2013 08:16:00 +0200 Subject: add commit about error condition --- cqrlogo.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.3-54-g00ecf