Commit 5b4753b0 authored by Dave Jones's avatar Dave Jones

[PATCH] strtok -> strsep in adfs

parent bfa49357
......@@ -171,7 +171,9 @@ static int parse_options(struct super_block *sb, char *options)
if (!options)
return 0;
for (opt = strtok(options, ","); opt != NULL; opt = strtok(NULL, ",")) {
while ((opt = strsep(&options, ",")) != NULL) {
if (!*opt)
continue;
value = strchr(opt, '=');
if (value)
*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