mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-03 16:45:53 +00:00
Ensure 16-byte alignment. Fix #2233
This commit is contained in:
+1
-1
@@ -247,7 +247,7 @@ ss_align(size_t size)
|
||||
void *tmp = NULL;
|
||||
#ifdef HAVE_POSIX_MEMALIGN
|
||||
/* ensure 16 byte alignment */
|
||||
err = posix_memalign(&tmp, sizeof(void *), size);
|
||||
err = posix_memalign(&tmp, 16, size);
|
||||
#else
|
||||
err = -1;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user