diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2012-04-02 21:30:58 +0000 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2012-04-02 21:30:58 +0000 |
commit | 9063bc87131f89e1a8b20f5ea507f4ed36018872 (patch) | |
tree | 1ceb936e5c348bccc7337a4d85a008374c9fdf83 /src | |
parent | a5d4f66ad6ebccf281743995718c67d10f5ef18c (diff) | |
download | nginx-9063bc87131f89e1a8b20f5ea507f4ed36018872.tar.gz nginx-9063bc87131f89e1a8b20f5ea507f4ed36018872.zip |
Win32: fixed memory allocation for shmem name (ticket #134).
Diffstat (limited to 'src')
-rw-r--r-- | src/os/win32/ngx_shmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/win32/ngx_shmem.c b/src/os/win32/ngx_shmem.c index 07a671438..5f3af8bc5 100644 --- a/src/os/win32/ngx_shmem.c +++ b/src/os/win32/ngx_shmem.c @@ -15,7 +15,7 @@ ngx_shm_alloc(ngx_shm_t *shm) u_char *name; uint64_t size; - name = ngx_alloc(shm->name.len + 2 + sizeof(NGX_INT32_LEN), shm->log); + name = ngx_alloc(shm->name.len + 2 + NGX_INT32_LEN, shm->log); if (name == NULL) { return NGX_ERROR; } |