diff src/os/win32/ngx_shmem.c @ 4570:b3d4e9c66e24

Win32: fixed memory allocation for shmem name (ticket #134).
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 02 Apr 2012 21:30:58 +0000
parents d620f497c50f
children af7eba90645d
line wrap: on
line diff
--- 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;
     }