Skip to content

Commit

Permalink
fapi: remove deprecated index function.
Browse files Browse the repository at this point in the history
The deprecated index function is replaced by strchr.
Fixes: tpm2-software#2656

Signed-off-by: Juergen Repp <[email protected]>
  • Loading branch information
JuergenReppSIT committed Jul 11, 2023
1 parent 27087c3 commit 482dcce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tss2-fapi/ifapi_profiles.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 482dcce

Please sign in to comment.