diff options
author | Christian Hesse <mail@eworm.de> | 2014-02-25 13:20:42 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2014-02-25 13:20:42 +0100 |
commit | b92fb11e9f5111706eea19f0eebff2b7fd1d9f68 (patch) | |
tree | 784c30f49ef0bd27b40ce9790c9a58af117f8d67 | |
parent | 94405f6b6011aaee0c5258425092720b46a79308 (diff) | |
download | cqrlogo-b92fb11e9f5111706eea19f0eebff2b7fd1d9f68.tar.gz cqrlogo-b92fb11e9f5111706eea19f0eebff2b7fd1d9f68.tar.zst |
make comment string to header file
-rw-r--r-- | lib/libcqrlogo.c | 2 | ||||
-rw-r--r-- | lib/libcqrlogo.h | 1 |
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" |