diff options
Diffstat (limited to 'apt-private/private-show.cc')
-rw-r--r-- | apt-private/private-show.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-private/private-show.cc b/apt-private/private-show.cc index b69008ec9..9ebbe6ac0 100644 --- a/apt-private/private-show.cc +++ b/apt-private/private-show.cc @@ -89,7 +89,7 @@ static APT_PURE char const *skipColonSpaces(char const *Buffer, size_t const Len ++Buffer; for (; isspace(*Buffer) != 0 && Length - (Buffer - Start) > 0; ++Buffer) ; - if (Length - (Buffer - Start) <= 0) + if (Length < static_cast<size_t>(Buffer - Start)) return nullptr; return Buffer; } |