diff options
-rw-r--r-- | firmware/common/dir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/common/dir.c b/firmware/common/dir.c index 88dbe29c80..00e3ade37d 100644 --- a/firmware/common/dir.c +++ b/firmware/common/dir.c @@ -49,10 +49,10 @@ static int strip_volume(const char* name, char* namecopy) int volume = 0; const char *temp = name; - while (*temp && strchr("/", *temp)) /* skip all leading slashes */ + while (*temp == '/') /* skip all leading slashes */ ++temp; - if (*temp && !strncmp(temp, vol_names, VOL_ENUM_POS)) + if (*temp && !strncmp(temp, vol_names, VOL_ENUM_POS)) { temp += VOL_ENUM_POS; /* behind special name */ volume = atoi(temp); /* number is following */ |