summaryrefslogtreecommitdiffstats
path: root/cqrlogo.c
diff options
context:
space:
mode:
Diffstat (limited to 'cqrlogo.c')
-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)