From a45ba22ee6feca5d32662bf433584911b928e7d1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 12 Oct 2008 15:26:18 +0300 Subject: [PATCH] net_Write: fix polling --- src/network/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/io.c b/src/network/io.c index a0ece78470..ed069b3d19 100644 --- a/src/network/io.c +++ b/src/network/io.c @@ -429,7 +429,7 @@ ssize_t __net_Write( vlc_object_t *p_this, int fd, const v_socket_t *p_vs, ufd[0].revents = ufd[1].revents = 0; - if (poll (ufd, 1, -1) == -1) + if (poll (ufd, sizeof (ufd) / sizeof (ufd[0]), -1) == -1) { if (errno == EINTR) continue; -- 2.39.5