aboutsummaryrefslogtreecommitdiff
path: root/cforum.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-09-18 23:10:23 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-09-18 23:11:23 +0200
commit7708b5f493bf3057af331624d29664ad17a87dbc (patch)
treebe56e078c043b7338938507d048307e851249726 /cforum.c
parent9ff1b81d65c370a938cd9d9c033e04e395f00704 (diff)
downloadcforum-7708b5f493bf3057af331624d29664ad17a87dbc.tar.gz
Make nextparam work with non-NUL-terminated data
At least on POST.
Diffstat (limited to 'cforum.c')
-rw-r--r--cforum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cforum.c b/cforum.c
index feee431..999ae78 100644
--- a/cforum.c
+++ b/cforum.c
@@ -73,7 +73,7 @@ main(int argc, char *argv[])
/* Parse query string. */
new = NULL;
attid = postid = userid = 0;
- while(p = nextparam(GET, 128)){
+ while(p = nextparam(GET, NULL, 128)){
v = split(p);
if(!attid && strcmp(p, "att") == 0) attid = atoi(v);
else if(!postid && strcmp(p, "post") == 0) postid = atoi(v);