diff --git a/roots.c b/roots.c index 9a43bb4..ea97c7a 100644 --- a/roots.c +++ b/roots.c @@ -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;