Author: mturk Date: Sat Aug 8 06:57:00 2009 New Revision: 802306 URL: http://svn.apache.org/viewvc?rev=802306&view=rev Log: Use larger size for hash buffer so we can use sha256 instead sha1
Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/pmutex.c commons/sandbox/runtime/trunk/src/main/native/os/win32/shm.c Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/pmutex.c URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/pmutex.c?rev=802306&r1=802305&r2=802306&view=diff ============================================================================== --- commons/sandbox/runtime/trunk/src/main/native/os/win32/pmutex.c (original) +++ commons/sandbox/runtime/trunk/src/main/native/os/win32/pmutex.c Sat Aug 8 06:57:00 2009 @@ -38,7 +38,7 @@ int rc; HANDLE m; wchar_t *reskey; - wchar_t keybuf[64]; + wchar_t keybuf[128]; if (fname == NULL) { reskey = NULL; @@ -63,7 +63,7 @@ { int rc; HANDLE m; - wchar_t reskey[64]; + wchar_t reskey[128]; if (!fname) { /* Reinitializing unnamed mutexes is a noop in the Unix code. */ @@ -146,4 +146,3 @@ */ return acr_ioh_close(mutex); } - Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/shm.c URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/shm.c?rev=802306&r1=802305&r2=802306&view=diff ============================================================================== --- commons/sandbox/runtime/trunk/src/main/native/os/win32/shm.c (original) +++ commons/sandbox/runtime/trunk/src/main/native/os/win32/shm.c Sat Aug 8 06:57:00 2009 @@ -97,7 +97,7 @@ HANDLE hmap, hfile; void *base; wchar_t *reskey; - wchar_t keybuf[64]; + wchar_t keybuf[128]; DWORD sizelo, sizehi; LPDWORD lpdwhi = NULL; @@ -233,7 +233,7 @@ int rc = 0; acr_shm_t *shm = NULL; HANDLE hmap; - wchar_t reskey[64]; + wchar_t reskey[128]; void *base; if (!filename) { @@ -326,4 +326,3 @@ else return m->length; } -