[vlc-commits] netconf: fix flawed logic

Rémi Denis-Courmont git at videolan.org
Thu Apr 24 20:14:28 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Apr 24 21:14:17 2014 +0300| [74fdea08cb260786d520363622001db535a02073] | committer: Rémi Denis-Courmont

netconf: fix flawed logic

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=74fdea08cb260786d520363622001db535a02073
---

 src/posix/netconf.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/posix/netconf.c b/src/posix/netconf.c
index 9e794bb..4dd751b 100644
--- a/src/posix/netconf.c
+++ b/src/posix/netconf.c
@@ -89,6 +89,7 @@ char *vlc_getProxyUrl(const char *url)
              ssize_t val = read(fd[0], buf + len, sizeof (buf) - len);
              if (val <= 0)
                  break;
+             len += val;
         }
         while (len < sizeof (buf));
 



More information about the vlc-commits mailing list