openbsd-ports/net/GeoIP/patches/patch-libGeoIP_GeoIP_c
2006-10-20 16:56:45 +00:00

13 lines
426 B
Plaintext

$OpenBSD: patch-libGeoIP_GeoIP_c,v 1.4 2006/10/20 16:56:45 steven Exp $
--- libGeoIP/GeoIP.c.orig Tue Aug 1 01:04:58 2006
+++ libGeoIP/GeoIP.c Fri Oct 20 18:58:32 2006
@@ -516,7 +516,7 @@ unsigned long _GeoIP_lookupaddress (cons
free(buf);
return 0;
}
- addr = *((unsigned long *) phe->h_addr_list[0]);
+ addr = (unsigned long) *((in_addr_t *) phe->h_addr_list[0]);
}
#ifdef HAVE_GETHOSTBYNAME_R
free(buf);