Subject: Re: knownhost_writeline buffer length

Re: knownhost_writeline buffer length

From: Alexander Lamaison <swish_at_lammy.co.uk>
Date: Thu, 25 Feb 2010 03:16:18 +0000

> On 24 February 2010 22:09, Peter Stuge <peter_at_stuge.se> wrote:
>
> Compare snprintf()

I notice that snprintf actually works in the slightly awkward way that
our code currently works: it returns one byte less than the number of
bytes needed in the output buffer as it excludes the NULL. Maybe we
should just fix the comment and be consistent with snprintf.

Alex
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-02-25