From: Maxim Dounin Date: Mon, 2 Apr 2012 21:30:58 +0000 (+0000) Subject: Win32: fixed memory allocation for shmem name (ticket #134). X-Git-Tag: release-1.1.19~16 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=9063bc87131f89e1a8b20f5ea507f4ed36018872;p=nginx.git Win32: fixed memory allocation for shmem name (ticket #134). --- 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; }