summaryrefslogtreecommitdiffstats
path: root/libmpdemux/pnm.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux/pnm.c')
-rw-r--r--libmpdemux/pnm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpdemux/pnm.c b/libmpdemux/pnm.c
index bf79a32920..c5368f2f98 100644
--- a/libmpdemux/pnm.c
+++ b/libmpdemux/pnm.c
@@ -202,7 +202,7 @@ static int rm_write(int s, const char *buf, int len) {
while (total < len){
int n;
- n = write (s, &buf[total], len - total);
+ n = send (s, &buf[total], len - total, 0);
if (n > 0)
total += n;
@@ -238,7 +238,7 @@ static ssize_t rm_read(int fd, void *buf, size_t count) {
return -1;
}
- ret=read (fd, ((uint8_t*)buf)+total, count-total);
+ ret=recv (fd, ((uint8_t*)buf)+total, count-total, 0);
if (ret<=0) {
printf ("input_pnm: read error.\n");