summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--threadproc/win32/proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/threadproc/win32/proc.c b/threadproc/win32/proc.c
index af9d56d8a..7261f5204 100644
--- a/threadproc/win32/proc.c
+++ b/threadproc/win32/proc.c
@@ -702,7 +702,7 @@ APR_DECLARE(apr_status_t) apr_proc_create(apr_proc_t *new,
{
apr_wchar_t *pNext;
- pEnvBlock = (char *)apr_palloc(pool, iEnvBlockLen * 2);
+ pEnvBlock = (char *)apr_palloc(pool, iEnvBlockLen * sizeof(apr_wchar_t));
dwCreationFlags |= CREATE_UNICODE_ENVIRONMENT;
i = 0;