diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2003-06-16 02:50:28 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2003-06-16 02:50:28 +0000 |
commit | bc7de3495f489a63887020ea707aa776e3d4a632 (patch) | |
tree | 8e1b95d28c94b11ee74d279123d00c71632c511e /ftp/curl/files/patch-lib::hostip.c | |
parent | Quiet compiler warnings on sparc64 by adding missing #includes (diff) |
Fix LP64 bugs and bump PORTREVISION. This still detects the bogus
gethostbyaddr_r() "implementation" in libc, which may be causing problems
in certain cases.
Notes
Notes:
svn path=/head/; revision=83087
Diffstat (limited to 'ftp/curl/files/patch-lib::hostip.c')
-rw-r--r-- | ftp/curl/files/patch-lib::hostip.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ftp/curl/files/patch-lib::hostip.c b/ftp/curl/files/patch-lib::hostip.c new file mode 100644 index 000000000000..d913c91b37e4 --- /dev/null +++ b/ftp/curl/files/patch-lib::hostip.c @@ -0,0 +1,16 @@ +--- lib/hostip.c.orig Tue May 13 05:12:17 2003 ++++ lib/hostip.c Sun Jun 15 18:44:13 2003 +@@ -497,11 +497,11 @@ + + /* now, shrink the allocated buffer to the size we actually need, which + most often is only a fraction of the original alloc */ +- newbuf=(char *)realloc(*buf, (int)bufptr-(int)(*buf)); ++ newbuf=(char *)realloc(*buf, (int)(bufptr-*buf)); + + /* if the alloc moved, we need to adjust things again */ + if(newbuf != *buf) +- hostcache_fixoffset((struct hostent*)newbuf, (int)newbuf-(int)*buf); ++ hostcache_fixoffset((struct hostent*)newbuf, (int)(newbuf-*buf)); + + /* setup the return */ + *buf = newbuf; |