commit | c23a7e623209dae6fb36366c2e717690c9bfa042 | [log] [tgz] |
---|---|---|
author | Paul Eggert <eggert@cs.ucla.edu> | Mon Aug 05 01:21:09 2024 -0700 |
committer | Paul Smith <psmith@gnu.org> | Mon Sep 02 14:43:24 2024 -0400 |
tree | 96b4062a7cc33053fe3f9631de1b9f29dfe1b641 | |
parent | 4d3bf7838f555f4da67c59f3b302750ac3a87ae8 [diff] |
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.