aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/LogBackend.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/LogBackend.cxx b/src/LogBackend.cxx
index 6f1794521..6591fef2d 100644
--- a/src/LogBackend.cxx
+++ b/src/LogBackend.cxx
@@ -21,7 +21,7 @@
#include "LogBackend.hxx"
#include "Log.hxx"
#include "util/Domain.hxx"
-#include "util/CharUtil.hxx"
+#include "util/StringUtil.hxx"
#ifdef HAVE_GLIB
#include <glib.h>
@@ -119,11 +119,7 @@ static int
chomp_length(const char *p)
{
size_t length = strlen(p);
-
- while (length > 0 && IsWhitespaceFast(p[length - 1]))
- --length;
-
- return (int)length;
+ return StripRight(p, length);
}
#ifdef HAVE_SYSLOG