From 9063bc87131f89e1a8b20f5ea507f4ed36018872 Mon Sep 17 00:00:00 2001 From: Maxim Dounin Date: Mon, 2 Apr 2012 21:30:58 +0000 Subject: [PATCH] Win32: fixed memory allocation for shmem name (ticket #134). --- src/os/win32/ngx_shmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }