]> granicus.if.org Git - postgresql/commit
Replace strncpy with strlcpy in selected places that seem possibly relevant
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 27 Sep 2006 18:40:10 +0000 (18:40 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 27 Sep 2006 18:40:10 +0000 (18:40 +0000)
commitc92f7e258ee579abd0f95183598edf250d351b2c
tree10c6b377a74c61b71ece70cfd3cb209795bf1051
parent996b203e621bc76985ff0156b4f2ef720944b41b
Replace strncpy with strlcpy in selected places that seem possibly relevant
to performance.  (A wholesale effort to get rid of strncpy should be
undertaken sometime, but not during beta.)  This commit also fixes dynahash.c
to correctly truncate overlength string keys for hashtables, so that its
callers don't have to anymore.
src/backend/commands/prepare.c
src/backend/nodes/read.c
src/backend/storage/ipc/shmem.c
src/backend/utils/error/elog.c
src/backend/utils/fmgr/dfmgr.c
src/backend/utils/hash/dynahash.c
src/backend/utils/hash/hashfn.c
src/backend/utils/misc/ps_status.c
src/backend/utils/mmgr/portalmem.c
src/port/path.c
src/port/thread.c