Commit 1e4a2c5e authored by Dave Jones's avatar Dave Jones

[PATCH] strtok->strsep in jfs

parent 19e66287
......@@ -171,9 +171,9 @@ static int parse_options (char * options, struct jfs_sb_info *sbi)
if (!options)
return 1;
for (this_char = strtok (options, ",");
this_char != NULL;
this_char = strtok (NULL, ",")) {
while ((this_char = strsep (&options, ",")) != NULL) {
if (!*this_char)
continue;
if ((value = strchr (this_char, '=')) != NULL)
*value++ = 0;
if (!strcmp (this_char, "iocharset")) {
......
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