tparse_query: use sizeof(choice) for the choice buffer - vote - simple cgi voti… | |
git clone git://src.adamsgaard.dk/vote | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit e1ed36fc26b81cb79ca811aeec29e844e4115d40 | |
parent 5adcb826f99b42970d38689b758d91812bf4483c | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Sun, 4 Oct 2020 15:51:40 +0200 | |
parse_query: use sizeof(choice) for the choice buffer | |
Signed-off-by: Anders Damsgaard <[email protected]> | |
Diffstat: | |
M vote.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/vote.c b/vote.c | |
t@@ -418,7 +418,7 @@ parse_query() | |
} | |
if ((p = getparam(query, "choice"))) { | |
- if (decodeparam(choice, sizeof(create), p) == -1) { | |
+ if (decodeparam(choice, sizeof(choice), p) == -1) { | |
http_status(401); | |
exit(1); | |
} |