On Tue, Jan 27, 2009 at 3:05 PM, Tom Lane <t...@sss.pgh.pa.us> wrote: > Brendan Jurd <dire...@gmail.com> writes: >> A quick grep through the backend code shows that strlcpy and strncpy >> are both in use, with neither having a clear majority. I used strncpy >> because it is more prevalent within src/backend/utils/adt. > > strncpy is generally deprecated; any remaining uses you find of it > are probably only there for lack of round tuits. Use strlcpy in new > code, unless there's a pretty strong argument that strncpy is actually > clearer for a given usage. >
Thanks for clearing that up Tom. I will update the patch to use strlcpy shortly. Cheers, BJ -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers