netconf: fix flawed logic
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 24 Apr 2014 18:14:17 +0000 (21:14 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 24 Apr 2014 18:14:17 +0000 (21:14 +0300)
src/posix/netconf.c

index 9e794bb..4dd751b 100644 (file)
@@ -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));