Commit 8733b4a3 authored by Dave Jones's avatar Dave Jones

[PATCH] strtok->strsep isofs

parent 924dae54
......@@ -341,7 +341,9 @@ static int parse_options(char *options, struct iso9660_options * popt)
popt->session=-1;
popt->sbsector=-1;
if (!options) return 1;
for (this_char = strtok(options,","); this_char; this_char = strtok(NULL,",")) {
while ((this_char = strsep(&options,",")) != NULL) {
if (!*this_char)
continue;
if (strncmp(this_char,"norock",6) == 0) {
popt->rock = 'n';
continue;
......
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