diff options
author | Christian Hesse <mail@eworm.de> | 2013-09-18 12:50:59 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-09-18 12:50:59 +0200 |
commit | 2b1fb0836721c05cb936800907d4932a88c4ad13 (patch) | |
tree | e59558c68a6b672739a08206fb6c0fd18514600b | |
parent | dd4a6120ed0a77691ea6f0f2d6262dcda05ce939 (diff) | |
download | cqrlogo-2b1fb0836721c05cb936800907d4932a88c4ad13.tar.gz cqrlogo-2b1fb0836721c05cb936800907d4932a88c4ad13.tar.zst |
write to the correct address
-rw-r--r-- | cqrlogo.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |