From a312127c9130d9874b265b580910055b0d1efe7b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 18 Jan 2002 12:56:10 +0000 Subject: made gcc -Wcast-align happy --- lib/ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/ftp.c') diff --git a/lib/ftp.c b/lib/ftp.c index 0ac280f61..29c0cb8bb 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -911,7 +911,7 @@ ftp_pasv_verbose(struct connectdata *conn, # ifdef HAVE_GETHOSTBYADDR_R_7 /* Solaris and IRIX */ answer = gethostbyaddr_r((char *) &address, sizeof(address), AF_INET, - (struct hostent *)hostent_buf, + (struct hostent *)bigbuf, hostent_buf + sizeof(*answer), sizeof(hostent_buf) - sizeof(*answer), &h_errnop); -- cgit v1.2.3