]> git.ipfire.org Git - thirdparty/asterisk.git/commit
iostream.c: Fix ast_iostream_gets() needlessly returning failure.
authorRichard Mudgett <rmudgett@digium.com>
Wed, 29 Aug 2018 21:14:46 +0000 (16:14 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 30 Aug 2018 21:09:03 +0000 (16:09 -0500)
commit781e78fe0ed1733df3a44590aff074429a555921
treefb85b1e1d7161139b890c5a05dd046b43f673ffb
parentb844477683bd3acc6827a1c2e48c3d891be1697d
iostream.c: Fix ast_iostream_gets() needlessly returning failure.

Providing a buffer larger than the internal buffer of ast_iostream_gets()
fails to get lines longer than the internal buffer.

* Made ast_iostream_gets() fill the supplied buffer with read data until
either a '\n' is found or the supplied buffer is filled just like fgets().

Change-Id: If18b3f6ee500e22f0633a68779ed09f7e0f305ed
main/iostream.c