summaryrefslogtreecommitdiffstats
path: root/Source/CTest/Curl/hostip.c
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-05-22 14:56:57 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-05-22 14:56:57 (GMT)
commitbf911785658862ed91fd164a02849e65c77e4e07 (patch)
tree8f340d858bb7235293343f521937d7a1b290f97e /Source/CTest/Curl/hostip.c
parentf5cf6676a77291356907de22c6d2d47f837e701e (diff)
downloadCMake-bf911785658862ed91fd164a02849e65c77e4e07.zip
CMake-bf911785658862ed91fd164a02849e65c77e4e07.tar.gz
CMake-bf911785658862ed91fd164a02849e65c77e4e07.tar.bz2
ERR: Attempt to fix more Curl warnings
Diffstat (limited to 'Source/CTest/Curl/hostip.c')
-rw-r--r--Source/CTest/Curl/hostip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CTest/Curl/hostip.c b/Source/CTest/Curl/hostip.c
index c2012ca..b525007 100644
--- a/Source/CTest/Curl/hostip.c
+++ b/Source/CTest/Curl/hostip.c
@@ -474,11 +474,11 @@ static struct hostent* pack_hostent(char** buf, struct hostent* orig)
/* now, shrink the allocated buffer to the size we actually need, which
most often is only a fraction of the original alloc */
- newbuf=(struct hostent *)realloc(*buf, (int)bufptr-(int)(*buf));
+ newbuf=(struct hostent *)realloc(*buf, (int)(bufptr-*buf));
/* if the alloc moved, we need to adjust things again */
if((char*)newbuf != *buf)
- hostcache_fixoffset((struct hostent*)newbuf, (int)newbuf-(int)*buf);
+ hostcache_fixoffset((struct hostent*)newbuf, (int)((char*)newbuf-*buf));
/* setup the return */
*buf = (char*)newbuf;