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) ...@@ -237,8 +237,9 @@ static int parse_options(char *options, struct hfs_sb_info *hsb, int *part)
if (!options) { if (!options) {
goto done; goto done;
} }
for (this_char = strtok(options,","); this_char; while ((this_char = strsep(&options,",")) != NULL) {
this_char = strtok(NULL,",")) { if (!*this_char)
continue;
if ((value = strchr(this_char,'=')) != NULL) { if ((value = strchr(this_char,'=')) != NULL) {
*value++ = 0; *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