diff options
Diffstat (limited to 'mount/mount.c')
-rw-r--r-- | mount/mount.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mount/mount.c b/mount/mount.c index ef478c79..e8cb5499 100644 --- a/mount/mount.c +++ b/mount/mount.c @@ -911,11 +911,11 @@ guess_fstype_and_mount(const char *spec, const char *node, const char **types, /* Accept a comma-separated list of types, and try them one by one */ /* A list like "nonfs,.." indicates types not to use */ - if (*types && strncmp(*types, "no", 2) && index(*types,',')) { + if (*types && strncmp(*types, "no", 2) && strchr(*types,',')) { char *t = strdup(*types); char *p; - while((p = index(t,',')) != NULL) { + while((p = strchr(t,',')) != NULL) { *p = 0; args.type = *types = t; if (do_mount (&args, special, status) == 0) |