diff options
author | John Ankarström <john@ankarstrom.se> | 2021-09-18 23:10:23 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-09-18 23:11:23 +0200 |
commit | 7708b5f493bf3057af331624d29664ad17a87dbc (patch) | |
tree | be56e078c043b7338938507d048307e851249726 /cforum.c | |
parent | 9ff1b81d65c370a938cd9d9c033e04e395f00704 (diff) | |
download | cforum-7708b5f493bf3057af331624d29664ad17a87dbc.tar.gz |
Make nextparam work with non-NUL-terminated data
At least on POST.
Diffstat (limited to 'cforum.c')
-rw-r--r-- | cforum.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |