From 96ed9f4a8fc64f8f1e8e48d76de483a31cf117f7 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Tue, 3 Sep 2024 22:21:53 -0500 Subject: [PATCH] Bugfix: Replace index() with strchr(). The `index()` function is deprecated. Use the `strchr()` function instead. --- level_0/f_environment/c/environment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/level_0/f_environment/c/environment.c b/level_0/f_environment/c/environment.c index 66bf895..7d09dde 100644 --- a/level_0/f_environment/c/environment.c +++ b/level_0/f_environment/c/environment.c @@ -91,7 +91,7 @@ extern char **environ; map.name.used = 0; map.value.used = 0; - at = index(*string, f_string_ascii_equal_s.string[0]); + at = strchr(*string, f_string_ascii_equal_s.string[0]); if (!at || at == *string) continue; map.name.string = *string; -- 1.8.3.1