about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--ext/kgio/poll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/kgio/poll.c b/ext/kgio/poll.c
index 0a4cf5a..502f660 100644
--- a/ext/kgio/poll.c
+++ b/ext/kgio/poll.c
@@ -62,7 +62,7 @@ static int io_to_pollfd_i(VALUE key, VALUE value, VALUE args)
 
 static void hash2pollfds(struct poll_args *a)
 {
-        a->fds = xmalloc(sizeof(struct poll_args) * RHASH_SIZE(a->ios));
+        a->fds = xmalloc(sizeof(struct pollfd) * RHASH_SIZE(a->ios));
         a->fd_to_io = st_init_numtable();
         rb_hash_foreach(a->ios, io_to_pollfd_i, (VALUE)a);
 }