diff options
author | Matus Fabian <matfabia@cisco.com> | 2024-07-22 09:56:01 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2024-07-22 17:07:02 +0000 |
commit | 7f163b682a57f42bd9b39a7f2d7e4c1c67df8386 (patch) | |
tree | 91f761d8087a52f2ed72026c4a2badaa334392d8 /src/vat | |
parent | 7561c45bcce4913620388a60be36dc1284d484a0 (diff) |
misc: replace index() with strchr()
Type: improvement
Change-Id: I471e514ebef0b4c1f86067115b2ebe5a5517c6fb
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'src/vat')
-rw-r--r-- | src/vat/api_format.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vat/api_format.c b/src/vat/api_format.c index 45ba025f191..48c1ccaa820 100644 --- a/src/vat/api_format.c +++ b/src/vat/api_format.c @@ -2151,7 +2151,7 @@ elog_save (vat_main_t * vam) } /* It's fairly hard to get "../oopsie" through unformat; just in case */ - if (strstr (file, "..") || index (file, '/')) + if (strstr (file, "..") || strchr (file, '/')) { errmsg ("illegal characters in filename '%s'", file); return 0; |