index() is a legacy string function formerly "equivalent to strchr", now
omitted from POSIX. This fixes builds on some newer libcs.
Signed-off-by: Muh Muhten <muh.muhten@gmail.com>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
static char *find_exe_parent(const char * const argv_0)
{
char *candidate = NULL;
- const char * const slash = index(argv_0, '/');
+ const char * const slash = strchr(argv_0, '/');
if (slash) {
candidate = strdup(argv_0);
assert(candidate);