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

sdp: fix multiple consecutive reads

(cherry picked from commit 7f981398)
parent 8b54e4af
......@@ -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