summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-01-07 20:01:16 +0100
committerJulian Andres Klode <jak@debian.org>2016-01-07 20:01:16 +0100
commit8cfd5495e30533e2ab708c8dc875f1c6f29650fd (patch)
tree71b885e433154124ebeb98f2ec405c067a15d1cd /apt-pkg/contrib
parenteff0c22e59e65b6b63e854ff41eb091278e05714 (diff)
StringView::rfind(): Call rfind() instead of find() on subst
Thanks: Niels Thykier for reporting on IRC Gbp-Dch: ignore
Diffstat (limited to 'apt-pkg/contrib')
-rw-r--r--apt-pkg/contrib/string_view.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/string_view.h b/apt-pkg/contrib/string_view.h
index b4ce0431c..16f324597 100644
--- a/apt-pkg/contrib/string_view.h
+++ b/apt-pkg/contrib/string_view.h
@@ -57,7 +57,7 @@ public:
size_t rfind(int c, size_t pos=0) const {
if (pos != 0)
- return substr(pos).find(c);
+ return substr(pos).rfind(c);
const char *found = static_cast<const char*>(memrchr(data_, c, size_));