summaryrefslogtreecommitdiff
path: root/hscript/disk.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-13 08:24:12 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-13 08:24:12 -0500
commit9d1fa0723fc5a68c92db67c73013dfa6ad38b890 (patch)
treed05ecb4263a33f65ef93628a5ca72af5ceb4e96e /hscript/disk.cc
parentece417cccd02667a4504546e72ba7264e6af535a (diff)
downloadhorizon-9d1fa0723fc5a68c92db67c73013dfa6ad38b890.tar.gz
horizon-9d1fa0723fc5a68c92db67c73013dfa6ad38b890.tar.bz2
horizon-9d1fa0723fc5a68c92db67c73013dfa6ad38b890.tar.xz
horizon-9d1fa0723fc5a68c92db67c73013dfa6ad38b890.zip
hscript: Fix mount option parsing
Diffstat (limited to 'hscript/disk.cc')
-rw-r--r--hscript/disk.cc2
1 files changed, 1 insertions, 1 deletions
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));