--- ipsec-tools-0.8.0.orig/src/racoon/racoonctl.c	2010-11-12 10:08:26.000000000 +0100
+++ ipsec-tools-0.8.0/src/racoon/racoonctl.c	2011-03-31 13:24:13.201808233 +0200
@@ -693,7 +693,7 @@ f_vpnc(ac, av)
 		errx(1, "cannot read source address");
 
 	/* We get "ip[port]" strip the port */
-	if ((idx = index(srcaddr, '[')) == NULL) 
+	if ((idx = strchr(srcaddr, '[')) == NULL) 
 		errx(1, "unexpected source address format");
 	*idx = '\0';
 
