summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libcqrlogo.c2
-rw-r--r--lib/libcqrlogo.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/libcqrlogo.c b/lib/libcqrlogo.c
index cfe864c..e1b7a8e 100644
--- a/lib/libcqrlogo.c
+++ b/lib/libcqrlogo.c
@@ -76,7 +76,7 @@ struct png_t * generate_png (struct bitmap_t *bitmap, const uint8_t meta, const
char *curi = NULL, *libsstr = NULL, *qrver;
if (meta & CQR_COMMENT)
- pngtext = add_png_text(pngtext, &textcount, "comment", "QR-Code created by cqrlogo - https://github.com/eworm-de/cqrlogo");
+ pngtext = add_png_text(pngtext, &textcount, "comment", COMMENTSTR);
if (meta & CQR_REFERER) {
curi = strdup(uri);
diff --git a/lib/libcqrlogo.h b/lib/libcqrlogo.h
index 8ce04f2..7ccd4cf 100644
--- a/lib/libcqrlogo.h
+++ b/lib/libcqrlogo.h
@@ -45,6 +45,7 @@ struct cqrconf_t {
#define CQR_VERSION 0x4
#define CQR_LIBVERSION 0x8
+#define COMMENTSTR "QR-Code created by cqrlogo - https://github.com/eworm-de/cqrlogo"
#define VERSIONSTR VERSION " (" __DATE__ ", " __TIME__ ")"
#define LIBSSTR "libqrencode %s, libpng %s, zlib %s"