diff options
author | Michael Vogt <egon@debian-devbox> | 2013-04-02 15:20:16 +0200 |
---|---|---|
committer | Michael Vogt <egon@debian-devbox> | 2013-04-02 15:20:16 +0200 |
commit | c1b21367668fb435cfb8a2a18c3292e006c2e795 (patch) | |
tree | 3c2afcfa7b6857eb90cc230b1f00cf3b737e07e7 /apt-pkg/contrib/strutl.cc | |
parent | bc65130d13c2737aefb85e609f67be196ae10a7f (diff) | |
parent | cfe9dc32900b537986c6765972307fd9e57ece0b (diff) |
merged lp:~mvo/apt/fix-inrelease5
Diffstat (limited to 'apt-pkg/contrib/strutl.cc')
-rw-r--r-- | apt-pkg/contrib/strutl.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apt-pkg/contrib/strutl.cc b/apt-pkg/contrib/strutl.cc index ca096d736..9726138a0 100644 --- a/apt-pkg/contrib/strutl.cc +++ b/apt-pkg/contrib/strutl.cc @@ -117,7 +117,13 @@ char *_strstrip(char *String) if (*String == 0) return String; - + return _strrstrip(String); +} + /*}}}*/ +// strrstrip - Remove white space from the back of a string /*{{{*/ +// --------------------------------------------------------------------- +char *_strrstrip(char *String) +{ char *End = String + strlen(String) - 1; for (;End != String - 1 && (*End == ' ' || *End == '\t' || *End == '\n' || *End == '\r'); End--); |