summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-01-19 20:21:11 +0100
committerwm4 <wm4@nowhere>2014-01-19 21:15:54 +0100
commit333a9491b7f01a1d61414f0e6ffe9d81a4acb300 (patch)
treeb820b433a21391f550857d83594e16d337cbaf5f /common
parent6afebbd0d9975c7aed9351a2a10740abeb111817 (diff)
downloadmpv-333a9491b7f01a1d61414f0e6ffe9d81a4acb300.tar.bz2
mpv-333a9491b7f01a1d61414f0e6ffe9d81a4acb300.tar.xz
stream: redo stream_read_line()
This simplifies the implementation and should make it more robust. For example, we return an error if a line is longer than the provided buffer (instead of splitting the line). The code is much shorter, because now finding the new line and reading characters is done in one go.
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions