From 9d1fa0723fc5a68c92db67c73013dfa6ad38b890 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 13 Oct 2019 08:24:12 -0500 Subject: hscript: Fix mount option parsing --- hscript/disk.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hscript') diff --git a/hscript/disk.cc b/hscript/disk.cc index 7786730..45b2281 100644 --- a/hscript/disk.cc +++ b/hscript/disk.cc @@ -35,7 +35,7 @@ Key *Mount::parseFromData(const std::string &data, int lineno, int *errors, } where_pos = data.find_first_of(' '); - opt_pos = data.find_first_of(' ', where_pos); + opt_pos = data.find_first_of(' ', where_pos + 1); dev = data.substr(0, where_pos); where = data.substr(where_pos + 1, (opt_pos - where_pos - 1)); -- cgit v1.2.3-70-g09d2