git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 2d6745a) | patch
Convert strncpy to strlcpy
2025年4月30日 21:00:47 +0000 (23:00 +0200)
2025年4月30日 21:00:47 +0000 (23:00 +0200)
commit 45e7e8ca9e9382e8f5e51fe0c085ea7f5d408ac8
Convert strncpy to strlcpy

We try to avoid using strncpy() due to the ease of which it can
be misused. Convert this callsite to use strlcpy() instead to
match similar codepaths in this file.

Suggested-by: Peter Eisentraut <peter@eisentraut.org>
Discussion: https://postgr.es/m/2a796830-de2d-4030-b480-d673f6cc5d94@eisentraut.org
src/backend/utils/mmgr/mcxt.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /