coverity 175438: server status plugin: off-by-one if you generate 32KB of content
This commit is contained in:
parent
af9ddec2f7
commit
cde0371a83
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ uv_timeout_cb_server_status(uv_timer_t *w
|
|||
char *p = v->d.buf + LWS_PRE, contents[256], pure[256];
|
||||
int n, l, first = 1, fd;
|
||||
|
||||
l = sizeof(v->d.buf) - LWS_PRE;
|
||||
l = sizeof(v->d.buf) - LWS_PRE - 1;
|
||||
|
||||
n = lws_snprintf(p, l, "{\"i\":");
|
||||
p += n;
|
||||
|
|
Loading…
Add table
Reference in a new issue