aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeCustom.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-06-16 14:58:11 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2018-06-16 14:58:36 -0400
commit8b444a3539758ce6666679608f3765608f92e0df (patch)
tree40c702cc44c50c7879303b453fdc9f8912a966ce /src/backend/executor/nodeCustom.c
parentf3be5d3e7891ef6886489cb0c9962d52c5983c70 (diff)
downloadpostgresql-8b444a3539758ce6666679608f3765608f92e0df.tar.gz
postgresql-8b444a3539758ce6666679608f3765608f92e0df.zip
Avoid unnecessary use of strncpy in a couple of places in ecpg.
Use of strncpy with a length limit based on the source, rather than the destination, is non-idiomatic and draws warnings from gcc 8. Replace with memcpy, which does exactly the same thing in these cases, but with less chance for confusion. Backpatch to all supported branches. Discussion: https://postgr.es/m/21789.1529170195@sss.pgh.pa.us
Diffstat (limited to 'src/backend/executor/nodeCustom.c')
0 files changed, 0 insertions, 0 deletions