[En-Nut-Discussion] Error in httpd_param_patch

Michael Fischer fischermi at t-online.de
Thu Sep 30 18:26:10 CEST 2004


Hello,

in the source from the projects, there is an error.

In NutHttpProcessQueryString the line:

req->req_qptrs = (char **)NutHeapAllocClear(sizeof(char
*)*req->req_numqptrs);

must be changed to:

req->req_qptrs = (char **)NutHeapAllocClear(sizeof(char *) *
(req->req_numqptrs*2));

We have req->req_numqptrs parameters, but we need 2 pointers for each.
One for the name, and one for the value.

Regards,

Michael








More information about the En-Nut-Discussion mailing list