Skip to content

Commit ed996c4

Browse files
committed
Fix string len
1 parent f12d506 commit ed996c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ngx_http_upload_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@ static ngx_int_t ngx_http_upload_start_handler(ngx_http_upload_ctx_t *u) { /* {{
12511251
return NGX_UPLOAD_NOMEM;
12521252
}
12531253

1254-
state_file->name.len = state_path->name.len + 1 + state_path->len + u->session_id.len + sizeof(".state");
1254+
state_file->name.len = state_path->name.len + 1 + state_path->len + u->session_id.len + sizeof(".state")-1;
12551255
state_file->name.data = ngx_palloc(u->request->pool, state_file->name.len + 1);
12561256

12571257
if(state_file->name.data == NULL)

0 commit comments

Comments
 (0)