summaryrefslogtreecommitdiff
path: root/hscript/disk.cc
diff options
context:
space:
mode:
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));