summaryrefslogtreecommitdiff
path: root/exec
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2017-08-05 19:26:25 +0200
committerJustus Winter <justus@gnupg.org>2017-08-05 20:55:06 +0200
commita2f64c2462282bb3cf1ad24044c97bb7d6b85e0d (patch)
tree44ea9ba66247feaf008b9220314fc8f07422570c /exec
parent66553fd7a7bcf7c260b45f2e7ad54e98d33f8080 (diff)
Replace bcopy with memcpy or memmove as appropriate.
* boot/boot.c: Replace bcopy with memcpy or memmove as appropriate. * exec/hashexec.c: Likewise. * libps/proclist.c: Likewise, but also fix the amount of data copied. * libps/procstat.c: Likewise. * libps/spec.c: Likewise. * libshouldbeinlibc/cacheq.c: Likewise. * libshouldbeinlibc/idvec.c: Likewise. * libshouldbeinlibc/timefmt.c: Likewise.
Diffstat (limited to 'exec')
-rw-r--r--exec/hashexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec/hashexec.c b/exec/hashexec.c
index 6337f0a4..68b48816 100644
--- a/exec/hashexec.c
+++ b/exec/hashexec.c
@@ -274,7 +274,7 @@ check_hashbang (struct execdata *e,
if (memchr (argv, '\0', argvlen) == NULL)
{
name = alloca (argvlen + 1);
- bcopy (argv, name, argvlen);
+ memcpy (name, argv, argvlen);
name[argvlen] = '\0';
}
else