curl-library
Re: libcurl + libssh2: strange error on Win64 (compiled using VS 2008)
From: Pierre Joye <pierre.php_at_gmail.com>
Date: Wed, 29 Dec 2010 00:38:15 +0100
Date: Wed, 29 Dec 2010 00:38:15 +0100
hi,
On Tue, Dec 28, 2010 at 11:53 PM, S.Gopi <sekargopi_at_yahoo.com> wrote:
> I got libcurl to work for http and https but I am seeing strange problem
> whenever I call libcurl to download files using SCP protocol, they abruptly
> exit the whole program (Seg fault).
Do you have a small code to reproduce the problem please?
> This is what happens:
> In scp_recv function in ssh.c, libssh2_channel_read function is called
> which returns ERROR_EAGAIN which is stored in variable 'nread'. This
> variable nread is declared ssize_t (typedef __int64 for Windows 64 in
> config-win32.h).
Both __int64 and int sound wrong to me. At least with VC9, it should be SSIZE_T.
Cheers,
-- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2010-12-29