summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmpdemux/netstream.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpdemux/netstream.h b/libmpdemux/netstream.h
index f13d80f1ca..61abfc8e8a 100644
--- a/libmpdemux/netstream.h
+++ b/libmpdemux/netstream.h
@@ -53,6 +53,7 @@ static int net_read(int fd, char* buf, int len) {
return 0;
}
len -= r;
+ buf += r;
}
return 1;
}
@@ -103,6 +104,7 @@ static int net_write(int fd, char* buf, int len) {
return 0;
}
len -= w;
+ buf += w;
}
return 1;
}