summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-09-18 12:50:59 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-09-18 12:50:59 +0200
commit2b1fb0836721c05cb936800907d4932a88c4ad13 (patch)
treee59558c68a6b672739a08206fb6c0fd18514600b
parentdd4a6120ed0a77691ea6f0f2d6262dcda05ce939 (diff)
downloadcqrlogo-2b1fb0836721c05cb936800907d4932a88c4ad13.tar.gz
cqrlogo-2b1fb0836721c05cb936800907d4932a88c4ad13.tar.zst
write to the correct address
-rw-r--r--cqrlogo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cqrlogo.c b/cqrlogo.c
index a44d661..1c1a27c 100644
--- a/cqrlogo.c
+++ b/cqrlogo.c
@@ -212,7 +212,7 @@ int get_value(const char *query_string, const char *pattern, unsigned int *value
sprintf(newpattern + length, "=");
if ((match = strstr(query_string, newpattern)) != NULL) {
- sprintf(newpattern + length, "%%u");
+ sprintf(newpattern + length + 1, "%%u");
if ((sscanf(match, newpattern, value)) > 0)
if (*value < min || *value > max)