mirror of https://github.com/postgres/postgres
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.uspull/32/head
parent
5d923eb29b
commit
6b74f5eaad
Loading…
Reference in new issue