diff options
Diffstat (limited to 'hscript/disk.cc')
-rw-r--r-- | hscript/disk.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hscript/disk.cc b/hscript/disk.cc index c0b0de9..217dbcb 100644 --- a/hscript/disk.cc +++ b/hscript/disk.cc @@ -38,7 +38,7 @@ Key *Mount::parseFromData(const std::string data, int lineno, int *errors, opt_pos = data.find_first_of(' ', where_pos); dev = data.substr(0, where_pos); - where = data.substr(where_pos + 1, opt_pos); + where = data.substr(where_pos + 1, (opt_pos - where_pos - 1)); if(opt_pos != std::string::npos) { opt = data.substr(opt_pos); } |