Alexander Lamaison wrote:
> Do we want libssh2_knownhost_writeline to NULL-terminate the line
> it writes to the buffer?
..
> The reason I ask is that the documentation says the value put in the
> outlen parameter when the buffer is too small is "the size libssh2
> wanted to store, which then is the smallest sufficient buffer it would
> require".
..
> Opinions?
Compare snprintf(), I say make the code count every byte.
//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-02-24