stream: make stream_read_line() terminate line on EOF
commita4e62de5dc1cf79a80a79e56dd58cd151f008429
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sat, 21 Aug 2010 10:08:29 +0000 (21 10:08 +0000)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Tue, 2 Nov 2010 02:15:49 +0000 (2 04:15 +0200)
treeb1c215726103625fca8205e8c124414f81fa5008
parent39e80404fad555a01276138f7606b0f9db65d731
stream: make stream_read_line() terminate line on EOF

Make sure we return an "empty" line on eof, to make sure we get
no buffer overflows in case some code fails to check the return value.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31999 b3059339-0415-0410-9bf9-f77b7e298cf2
stream/stream.c