diff options
Diffstat (limited to 'hscript')
-rw-r--r-- | hscript/network.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hscript/network.cc b/hscript/network.cc index 5808730..17fd0ea 100644 --- a/hscript/network.cc +++ b/hscript/network.cc @@ -407,7 +407,7 @@ Key *PPPoE::parseFromData(const std::string &data, const ScriptLocation &pos, if(next == std::string::npos) { val = data.substr(equals + 1); } else { - val = data.substr(equals + 1, next - equals); + val = data.substr(equals + 1, next - equals - 1); } } else { if(next == std::string::npos) { |