Skip to content

Commit

Permalink
fix up key value parsing
Browse files Browse the repository at this point in the history
Change-Id: I05e821cd1215c44be780694644e568676fd67565
  • Loading branch information
koush committed Jan 29, 2012
1 parent 10034aa commit e2a6658
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roots.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ static int parse_options(char* options, Volume* volume) {
volume->length = strtoll(option+7, NULL, 10);
} else if (strncmp(option, "fstype2=", 8) == 0) {
volume->fs_type2 = volume->fs_type;
volume->fs_type = strdup(option);
volume->fs_type = strdup(option + 8);
} else if (strncmp(option, "fs_options=", 11) == 0) {
volume->fs_options = strdup(option);
volume->fs_options = strdup(option + 11);
} else if (strncmp(option, "fs_options2=", 12) == 0) {
volume->fs_options2 = strdup(option);
volume->fs_options2 = strdup(option + 12);
} else {
LOGE("bad option \"%s\"\n", option);
return -1;
Expand Down

0 comments on commit e2a6658

Please sign in to comment.