summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2026-04-08 10:26:06 +0000
committerJulian Andres Klode <jak@debian.org>2026-04-08 10:26:06 +0000
commita6873075dcac5115706e001bc9640c8da0805e35 (patch)
treee5d3d569e51d24207eb0228615f5eedd37e08296 /apt-pkg/contrib
parent04dcfd52355ca06143a8aaca4afd718a22fb0ded (diff)
parentaf5b9453a1908021cf75c348522c1a12eeb0dee4 (diff)
Merge branch 'str-to-chars' into 'main'
apt: funcs called with a string literal consisting of a single character See merge request apt-team/apt!563
Diffstat (limited to 'apt-pkg/contrib')
-rw-r--r--apt-pkg/contrib/strutl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/contrib/strutl.cc b/apt-pkg/contrib/strutl.cc
index b5200831a..4363ab818 100644
--- a/apt-pkg/contrib/strutl.cc
+++ b/apt-pkg/contrib/strutl.cc
@@ -840,7 +840,7 @@ std::string LookupTag(const std::string &Message, const char *TagC, const char *
// skip the space leading a multiline (Keep all other whitespaces in the value)
valuestart = std::next(valuestart);
}
- auto const valueend = result.find_last_not_of("\n");
+ auto const valueend = result.find_last_not_of('\n');
if (valueend == std::string::npos)
result.clear();
else
@@ -1506,7 +1506,7 @@ char *safe_snprintf(char *Buffer,char *End,const char *Format,...)
// ---------------------------------------------------------------------
string StripEpoch(const string &VerStr)
{
- size_t i = VerStr.find(":");
+ size_t i = VerStr.find(':');
if (i == string::npos)
return VerStr;
return VerStr.substr(i+1);