Klaus Demo nginx / de1a3e1
Fix buffer overrun under Windows. Maxim Dounin 10 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
227227 ngx_uint_t collision;
228228 ngx_atomic_uint_t num;
229229
230 name = ngx_alloc(to->len + 1 + 10 + 1 + sizeof("DELETE"), log);
230 name = ngx_alloc(to->len + 1 + NGX_ATOMIC_T_LEN + 1 + sizeof("DELETE"),
231 log);
231232 if (name == NULL) {
232233 return NGX_ENOMEM;
233234 }