We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f12d506 commit ed996c4Copy full SHA for ed996c4
ngx_http_upload_module.c
@@ -1251,7 +1251,7 @@ static ngx_int_t ngx_http_upload_start_handler(ngx_http_upload_ctx_t *u) { /* {{
1251
return NGX_UPLOAD_NOMEM;
1252
}
1253
1254
- state_file->name.len = state_path->name.len + 1 + state_path->len + u->session_id.len + sizeof(".state");
+ state_file->name.len = state_path->name.len + 1 + state_path->len + u->session_id.len + sizeof(".state")-1;
1255
state_file->name.data = ngx_palloc(u->request->pool, state_file->name.len + 1);
1256
1257
if(state_file->name.data == NULL)
0 commit comments