Commit 7f981398 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

sdp: fix multiple consecutive reads

parent d88d7109
......@@ -83,6 +83,7 @@ static ssize_t Read (stream_t *access, void *buf, size_t len)
if (len > sys->length - sys->offset)
len = sys->length - sys->offset;
memcpy (buf, sys->data + sys->offset, len);
sys->offset += len;
return len;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment