Win32: fixed memory allocation for shmem name (ticket #134).
Maxim Dounin
10 years ago
14 | 14 |
u_char *name;
|
15 | 15 |
uint64_t size;
|
16 | 16 |
|
17 | |
name = ngx_alloc(shm->name.len + 2 + sizeof(NGX_INT32_LEN), shm->log);
|
|
17 |
name = ngx_alloc(shm->name.len + 2 + NGX_INT32_LEN, shm->log);
|
18 | 18 |
if (name == NULL) {
|
19 | 19 |
return NGX_ERROR;
|
20 | 20 |
}
|