]> git.ipfire.org Git - thirdparty/make.git/commit
Prefer memcpy to strncpy if either will do
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 5 Aug 2024 08:21:09 +0000 (01:21 -0700)
committerPaul Smith <psmith@gnu.org>
Mon, 2 Sep 2024 18:43:24 +0000 (14:43 -0400)
commitc23a7e623209dae6fb36366c2e717690c9bfa042
tree96b4062a7cc33053fe3f9631de1b9f29dfe1b641
parent4d3bf7838f555f4da67c59f3b302750ac3a87ae8
Prefer memcpy to strncpy if either will do

strncpy is trickier and a bit slower.
* src/function.c (func_realpath, func_abspath):
* src/misc.c (xstrndup):
Prefer memcpy or mempcpy to strncpy when the source length is known.
src/function.c
src/misc.c