Re: pgsql: Add missing string terminator

From: David Rowley <dgrowleyml(at)gmail(dot)com>
To: Daniel Gustafsson <daniel(at)yesql(dot)se>
Cc: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Add missing string terminator
Date: 2025-04-30 11:56:08
Message-ID: CAApHDvoRKSrujq5FN8WzncVtTpVL2c_LMs-o=8fjdmqce1pmjQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

On Wed, 30 Apr 2025 at 23:43, David Rowley <dgrowleyml(at)gmail(dot)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

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2025-04-30 12:44:41 Re: pgsql: Add missing string terminator
Previous Message David Rowley 2025-04-30 11:43:11 Re: pgsql: Add missing string terminator