summaryrefslogtreecommitdiffstats
path: root/bsd-setenv.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-01-05 06:09:52 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-01-05 06:09:52 +0000
commit8835a8910513621a4c20a0ede9a4bdeee947cbd4 (patch)
tree1cdf3c45b686371c900a80152e8ac127873f10c0 /bsd-setenv.c
parent91c2a985f9d00247ba2fda6aebbffaeac609f328 (diff)
- (bal) bsd-getcwd.c and bsd-setenv.c changed from bcopy() to memmove()
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;