From 2b1fb0836721c05cb936800907d4932a88c4ad13 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 18 Sep 2013 12:50:59 +0200 Subject: write to the correct address --- cqrlogo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3-70-g09d2