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.