summaryrefslogtreecommitdiff
path: root/win32/select.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/select.c')
-rw-r--r--win32/select.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/select.c b/win32/select.c
index f480fb9e6b..54840ac0f7 100644
--- a/win32/select.c
+++ b/win32/select.c
@@ -50,7 +50,7 @@ PHPAPI int php_select(php_socket_t max_fd, fd_set *rfds, fd_set *wfds, fd_set *e
return 0;
}
- handles = (HANDLE*)emalloc((fd_count + sock_count) * sizeof(HANDLE));
+ handles = (HANDLE*)safe_emalloc((fd_count + sock_count), sizeof(HANDLE), 0);
/* populate the events and handles arrays */
f = 0;