diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-06-15 15:18:33 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-06-15 15:18:33 +0000 |
commit | 78f386ad45dc046d673fca5441dff188a7297059 (patch) | |
tree | 9ffa89fb46457318184e0531bb0e68d3817ceb4d /src/protocol-simple.c | |
parent | 98f41f1e70e66dcfc4c457ae47bffb07ed83947f (diff) |
more work
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@17 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/protocol-simple.c')
-rw-r--r-- | src/protocol-simple.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/protocol-simple.c b/src/protocol-simple.c index 1c462b39..d34a5d02 100644 --- a/src/protocol-simple.c +++ b/src/protocol-simple.c @@ -78,13 +78,15 @@ static int do_read(struct connection *c) { chunk.memblock = memblock_new(BUFSIZE); assert(chunk.memblock); + + memblock_stamp(chunk.memblock); if ((r = iochannel_read(c->io, chunk.memblock->data, BUFSIZE)) <= 0) { fprintf(stderr, "read(): %s\n", r == 0 ? "EOF" : strerror(errno)); memblock_unref(chunk.memblock); return -1; } - + chunk.memblock->length = r; chunk.length = r; chunk.index = 0; |