www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: [PATCH] Use safer snprintf rather then sprintf in scp_recv()

Re: [PATCH] Use safer snprintf rather then sprintf in scp_recv()

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 6 Mar 2012 21:46:18 +0100 (CET)

On Tue, 6 Mar 2012, Alexander Lamaison wrote:

>> Sure, but we aim for C89 compatibility so snprintf() isn't generally
>> available - we would then need to provide an internal version for the
>> inferior systems!
> That's what I thought. But a quick rgrep and I find we use it all over the
> place!

Haha, well that what I get for just blabbing without checking my facts
properly. I guess nobody truly used libssh2 yet on one of them old and stupid
systems! =)

Ok, I retract my objection and as we already use snprintf() we can continue
using it and when someone wants libssh2 on a system which doesn't already
provide one, we can work on adding an internal one for those at that time.

Thanks Alexander!

  / daniel.haxx.se
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-03-06

the libssh2 team