diff options
author | Julian Andres Klode <jak@debian.org> | 2016-02-04 01:08:50 +0100 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2016-02-04 01:08:50 +0100 |
commit | 9ffba52025237c89bcca5de06722729172fe1aea (patch) | |
tree | e99790ddcdce92f210651ceaa3182156305bee7a | |
parent | ef72d726399763446f31a07b11f30f6a726ea81a (diff) | |
parent | 732510fef9af5addc5e3ff1a79ce8c9658711fb6 (diff) |
Merge branch 'master' of github.com:adrian17/apt
-rw-r--r-- | apt-pkg/contrib/strutl.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apt-pkg/contrib/strutl.cc b/apt-pkg/contrib/strutl.cc index 5e641a02b..242a78449 100644 --- a/apt-pkg/contrib/strutl.cc +++ b/apt-pkg/contrib/strutl.cc @@ -464,7 +464,9 @@ string SubstVar(const string &Str,const string &Subst,const string &Contents) if (OldPos >= Str.length()) return Temp; - return Temp + string(Str,OldPos); + + Temp.append(Str, OldPos, string::npos); + return Temp; } string SubstVar(string Str,const struct SubstVar *Vars) { |