summaryrefslogtreecommitdiff
path: root/package/bind/patches/patch-lib_isc_unix_ifiter_ioctl_c
blob: adb2aa906a1e7c25974818e2d8a9f65b2d76efad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
--- bind-9.4.1.orig/lib/isc/unix/ifiter_ioctl.c	2006-02-04 00:51:38.000000000 +0100
+++ bind-9.4.1/lib/isc/unix/ifiter_ioctl.c	2008-10-08 14:56:12.000000000 +0200
@@ -479,8 +479,8 @@ linux_if_inet6_current(isc_interfaceiter
 	for (i = 0; i < 16; i++) {
 		unsigned char byte;
 		static const char hex[] = "0123456789abcdef";
-		byte = ((index(hex, address[i * 2]) - hex) << 4) |
-		       (index(hex, address[i * 2 + 1]) - hex);
+		byte = ((strchr(hex, address[i * 2]) - hex) << 4) |
+		       (strchr(hex, address[i * 2 + 1]) - hex);
 		addr6.s6_addr[i] = byte;
 	}
 	iter->current.af = AF_INET6;