Re: pgsql: Add missing string terminator - Mailing list pgsql-committers

From David Rowley
Subject Re: pgsql: Add missing string terminator
Date
Msg-id CAApHDvoRKSrujq5FN8WzncVtTpVL2c_LMs-o=8fjdmqce1pmjQ@mail.gmail.com
Whole thread Raw
In response to Re: pgsql: Add missing string terminator  (David Rowley <dgrowleyml@gmail.com>)
Responses Re: pgsql: Add missing string terminator
List pgsql-committers
On Wed, 30 Apr 2025 at 23:43, David Rowley <dgrowleyml@gmail.com> wrote:
> memcpy() would make more sense IMO, since the length is
> known already. I'm fine with either, however.

In case you're looking for inspiration on a standard to follow,
commits such as 586dd5d6a did seem to favour memcpy() when the length
was known and only use strlcpy() when it wasn't.

David



pgsql-committers by date:

Previous
From: David Rowley
Date:
Subject: Re: pgsql: Add missing string terminator
Next
From: Peter Eisentraut
Date:
Subject: Re: pgsql: Add missing string terminator