summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/strutl.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2013-03-16 09:15:46 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2013-03-16 09:15:46 +0100
commita7e6a0ccd0328bd3c4292528225def929c36f607 (patch)
treeb5337b311f7ed3801ddc11c772d91a6b4b99cc87 /apt-pkg/contrib/strutl.cc
parent55971004215609a02ca19c59bd058da20729ba11 (diff)
parent2d3fe9cfadb33556b7563a98bb5a4698888e6c40 (diff)
merged from davids bundle
Diffstat (limited to 'apt-pkg/contrib/strutl.cc')
-rw-r--r--apt-pkg/contrib/strutl.cc8
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--);