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:
2
src/rm.c
2
src/rm.c
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user