coverity 169272 - off-by-one possible on CGI buffer limit
This commit is contained in:
parent
d8e051dd97
commit
d6761e87b5
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ lws_callback_http_dummy(struct lws *wsi, enum lws_callback_reasons reason,
|
|||
break;
|
||||
case LWS_STDERR:
|
||||
n = read(lws_get_socket_fd(args->stdwsi[LWS_STDERR]),
|
||||
buf, sizeof(buf) - 1);
|
||||
buf, sizeof(buf) - 2);
|
||||
if (n > 0) {
|
||||
if (buf[n - 1] != '\n')
|
||||
buf[n++] = '\n';
|
||||
|
|
Loading…
Add table
Reference in a new issue