Commit 3796dc0b authored by Dave Jones's avatar Dave Jones

[PATCH] strtok->strsep in ntfs

parent 5fc4329a
......@@ -360,10 +360,13 @@ static int parse_options(ntfs_volume *vol, char *opt)
int use_utf8 = -1; /* If no NLS specified and loading the default
NLS failed use utf8. */
int mft_zone_mul = -1; /* 1 */
char *opts = opt;
if (!opt)
goto done;
for (opt = strtok(opt, ","); opt; opt = strtok(NULL, ",")) {
while ((opt = strsep(&opts, ",")) != NULL) {
if (!*opt)
continue;
if ((value = strchr(opt, '=')) != NULL)
*value ++= '\0';
if (strcmp(opt, "uid") == 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