From: Peter van Dijk Date: Wed, 16 Dec 2020 09:15:27 +0000 (+0100) Subject: remove +1 X-Git-Tag: rec-4.5.0-alpha1~56^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F9844%2Fhead;p=thirdparty%2Fpdns.git remove +1 --- diff --git a/pdns/dnslabeltext.rl b/pdns/dnslabeltext.rl index 7b2fd40ba5..393a521720 100644 --- a/pdns/dnslabeltext.rl +++ b/pdns/dnslabeltext.rl @@ -177,7 +177,7 @@ size_t parseRFC1035CharString(const std::string &in, std::string &val) { val.clear(); val.reserve(in.size()); const char *p = in.c_str(); - const char *pe = p + in.size() + 1; + const char *pe = p + in.size(); int cs = 0; uint8_t escaped_octet = 0; // Keeps track of how many chars we read from the source string