From e2a66586a329b20cea32fedc94d1ccdd7484073b Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Sun, 29 Jan 2012 14:02:39 -0800 Subject: [PATCH] fix up key value parsing Change-Id: I05e821cd1215c44be780694644e568676fd67565 --- roots.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;