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: Alexander Lamaison <swish_at_lammy.co.uk>
Date: Tue, 6 Mar 2012 19:16:31 +0000

On 6 March 2012 17:57, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Tue, 6 Mar 2012, Steven Dake wrote:
>
>> While the buffer is indeed allocated to a safe length, better safe then
>> sorry.
>
> 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!

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

the libssh2 team