]> 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 22:12:11 +0000 (17:12 -0500)
commitf657793ee44ce9991ec12c443489dd842b9240bb
tree3b23bfb8e554710f5b834c2264e6745b92dc0f3b
parentb07da4b472d20ea22bb9c50a6e03b9a18ad1a900
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