1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-20 18:56:39 +02:00

(full_filename): Use memcpy, not mempcpy when not using the return value.

This commit is contained in:
Jim Meyering
1997-11-30 11:02:47 +00:00
parent 5112b2973f
commit f7ecccf234

View File

@@ -434,7 +434,7 @@ full_filename (const char *filename)
/* Copy directory part, including trailing slash, and then
append the filename part, including a trailing zero byte. */
mempcpy (mempcpy (buf, dir_name, dir_len), filename, filename_len + 1);
memcpy (mempcpy (buf, dir_name, dir_len), filename, filename_len + 1);
assert (strlen (buf) + 1 == n_bytes_needed);