Commit 9eec96c8 authored by Dave Jones's avatar Dave Jones

[PATCH] strtok->strsep in hfs

parent 6d322ead
......@@ -237,8 +237,9 @@ static int parse_options(char *options, struct hfs_sb_info *hsb, int *part)
if (!options) {
goto done;
}
for (this_char = strtok(options,","); this_char;
this_char = strtok(NULL,",")) {
while ((this_char = strsep(&options,",")) != NULL) {
if (!*this_char)
continue;
if ((value = strchr(this_char,'=')) != NULL) {
*value++ = 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment