]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
use strchr(), not index()
authorwessels <>
Sat, 3 Jan 1998 04:35:37 +0000 (04:35 +0000)
committerwessels <>
Sat, 3 Jan 1998 04:35:37 +0000 (04:35 +0000)
src/asn.cc

index 036f7436774f121ece1350438446397617963d45..843ce8080082a1e31a73309afce70ff0377186a7 100644 (file)
@@ -266,7 +266,7 @@ asnAddNet(char *as_string, int as_number)
     char *t;
     int bitl;
 
-    t = index(as_string, '/');
+    t = strchr(as_string, '/');
     if (t == NULL) {
        debug(53, 3) ("asnAddNet: failed, invalid response from whois server.\n");
        return 0;