From: Alan T. DeKok Date: Sat, 20 Nov 2021 17:52:39 +0000 (-0500) Subject: typo: don't NUL terminate octet strings X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97160eb29da79933b722497ffc49c60ff3e5a6b4;p=thirdparty%2Ffreeradius-server.git typo: don't NUL terminate octet strings --- diff --git a/src/lib/util/calc.c b/src/lib/util/calc.c index a36d9836b44..a6af2dea811 100644 --- a/src/lib/util/calc.c +++ b/src/lib/util/calc.c @@ -398,7 +398,6 @@ static int calc_octets(TALLOC_CTX *ctx, fr_value_box_t *dst, fr_value_box_t cons if (!buf) goto oom; memcpy(buf, a->vb_strvalue, len); - buf[len] = '\0'; fr_value_box_clear_value(dst); fr_value_box_memdup_shallow(dst, dst->enumv, buf, len, a->tainted | b->tainted);