From b92fb11e9f5111706eea19f0eebff2b7fd1d9f68 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 25 Feb 2014 13:20:42 +0100 Subject: make comment string to header file --- lib/libcqrlogo.c | 2 +- lib/libcqrlogo.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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" -- cgit v1.2.3-54-g00ecf