From bcc2c336a4d34a79120d96d7fc1ce48e0b72a149 Mon Sep 17 00:00:00 2001 From: Peter Pentchev Date: Fri, 9 Apr 2004 12:14:13 +0000 Subject: Update to curl 7.11.1. --- ftp/curl/files/patch-lib::hostip.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'ftp/curl/files/patch-lib::hostip.c') diff --git a/ftp/curl/files/patch-lib::hostip.c b/ftp/curl/files/patch-lib::hostip.c index d913c91b37e4..4c15c91a7222 100644 --- a/ftp/curl/files/patch-lib::hostip.c +++ b/ftp/curl/files/patch-lib::hostip.c @@ -1,16 +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 @@ +--- lib/hostip.c.orig Fri Apr 9 14:28:07 2004 ++++ lib/hostip.c Fri Apr 9 14:29:12 2004 +@@ -887,11 +887,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)); +- newbuf=(char *)realloc(*buf, (long)bufptr-(long)(*buf)); ++ newbuf=(char *)realloc(*buf, (long)(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)); +- hostcache_fixoffset((struct hostent*)newbuf, (long)newbuf-(long)*buf); ++ hostcache_fixoffset((struct hostent*)newbuf, (long)(newbuf-*buf)); /* setup the return */ *buf = newbuf; -- cgit v1.2.3