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

Archive Index This month's Index

Subject: Re: libssh2 master 164838c sftp_readdir: return error if buffer is too small

Re: libssh2 master 164838c sftp_readdir: return error if buffer is too small

From: Peter Stuge <peter_at_stuge.se>
Date: Tue, 4 Jan 2011 14:57:09 +0100

Alexander Lamaison wrote:
> >    sftp_readdir: return error if buffer is too small
>
> As libssh2 knows the length the buffer needs to be in each case, could
> we add a separate API call that fetches this buffer size? This would
> allow very careful code to avoid the buffer length problem entirely.

Sorry, I don't understand what you mean here. Could you elaborate a
little?

Thanks!

//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-01-04

the libssh2 team