Skip to content
Snippets Groups Projects
  • Richard Mudgett's avatar
    f657793e
    iostream.c: Fix ast_iostream_gets() needlessly returning failure. · f657793e
    Richard Mudgett authored
    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
    f657793e
    History
    iostream.c: Fix ast_iostream_gets() needlessly returning failure.
    Richard Mudgett authored
    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