diff options
Diffstat (limited to 'sys/libkern/fnmatch.c')
-rw-r--r-- | sys/libkern/fnmatch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/libkern/fnmatch.c b/sys/libkern/fnmatch.c index d6cdc85..5e7bda6 100644 --- a/sys/libkern/fnmatch.c +++ b/sys/libkern/fnmatch.c @@ -89,12 +89,12 @@ fnmatch(const char *pattern, const char *string, int flags) if (c == EOS) if (flags & FNM_PATHNAME) return ((flags & FNM_LEADING_DIR) || - index(string, '/') == NULL ? + strchr(string, '/') == NULL ? 0 : FNM_NOMATCH); else return (0); else if (c == '/' && flags & FNM_PATHNAME) { - if ((string = index(string, '/')) == NULL) + if ((string = strchr(string, '/')) == NULL) return (FNM_NOMATCH); break; } |