tparse_query: use sizeof(choice) for the choice buffer - vote - simple cgi voting system for web and gopher
(HTM) git clone git://src.adamsgaard.dk/vote
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit e1ed36fc26b81cb79ca811aeec29e844e4115d40
(DIR) parent 5adcb826f99b42970d38689b758d91812bf4483c
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 4 Oct 2020 15:51:40 +0200
parse_query: use sizeof(choice) for the choice buffer
Signed-off-by: Anders Damsgaard <anders@adamsgaard.dk>
Diffstat:
M vote.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) 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);
}