index -> strchr
authorJohn Carr <jfc@mit.edu>
Sun, 23 Feb 1992 12:25:36 +0000 (12:25 +0000)
committerJohn Carr <jfc@mit.edu>
Sun, 23 Feb 1992 12:25:36 +0000 (12:25 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2237 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/imp_name.c

index 0d4e9862ecc9fb33ac1580c8944818264ae32885..7c725df9a401654a78a4c0bc267bc17c035f99f3 100644 (file)
@@ -85,7 +85,7 @@ OM_uint32 gss_service_import_name(minor_status, input_name_buffer, output_name)
         * Assume the first eight characters are "service:"
         */
        service = cp = str + 8;
-       if (!(cp = index(cp, '@'))) {
+       if (!(cp = strchr(cp, '@'))) {
                free(str);
                return(GSS_S_BAD_NAME);
        }