From fe2b30e272950187d8fdf1006390ac29d37f1e85 Mon Sep 17 00:00:00 2001 From: Juergen Repp Date: Tue, 11 Jul 2023 18:43:11 +0200 Subject: [PATCH] fapi: remove deprecated index function. The deprecated index function is replaces by strchr. Fixes: #2656 Signed-off-by: Juergen Repp --- src/tss2-fapi/ifapi_profiles.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tss2-fapi/ifapi_profiles.c b/src/tss2-fapi/ifapi_profiles.c index cdf639c4d..2dfaa29d4 100644 --- a/src/tss2-fapi/ifapi_profiles.c +++ b/src/tss2-fapi/ifapi_profiles.c @@ -256,12 +256,12 @@ ifapi_profiles_get( } /* Search for path delimiter */ - split = index(name, IFAPI_FILE_DELIM_CHAR); + split = strchr(name, IFAPI_FILE_DELIM_CHAR); /* If the path beging with delimiters, skip over those */ if (name == split) { name += 1; - split = index(name, IFAPI_FILE_DELIM_CHAR); + split = strchr(name, IFAPI_FILE_DELIM_CHAR); } if (split == NULL) len = strlen(name);