summaryrefslogtreecommitdiff
path: root/bsd-setenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsd-setenv.c')
-rw-r--r--bsd-setenv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsd-setenv.c b/bsd-setenv.c
index f5dbd277..d69f8825 100644
--- a/bsd-setenv.c
+++ b/bsd-setenv.c
@@ -122,7 +122,7 @@ setenv(name, value, rewrite)
(cnt + 2)));
if (!P)
return (-1);
- bcopy(environ, P, cnt * sizeof(char *));
+ memmove(environ, P, cnt * sizeof(char *));
environ = P;
}
environ[cnt + 1] = NULL;