summaryrefslogtreecommitdiff
path: root/openbsd-compat/setenv.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-02-19 19:54:43 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-02-19 19:54:43 +0000
commit4ffaad8c33eea799dc843f5b07cca7c433ea0b6d (patch)
treebc0ad6a6e965fc0603c564f2179f0fa8aea53cdc /openbsd-compat/setenv.c
parent7387fdb6b58b8ba26e1ec7f476d2a5b57236bae1 (diff)
- (bal) Fix mixed up params to memmove() from Jan 5th in setenv.c and
getcwd.c.
Diffstat (limited to 'openbsd-compat/setenv.c')
-rw-r--r--openbsd-compat/setenv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd-compat/setenv.c b/openbsd-compat/setenv.c
index d69f8825..ac9670ba 100644
--- a/openbsd-compat/setenv.c
+++ b/openbsd-compat/setenv.c
@@ -122,7 +122,7 @@ setenv(name, value, rewrite)
(cnt + 2)));
if (!P)
return (-1);
- memmove(environ, P, cnt * sizeof(char *));
+ memmove(P, environ, cnt * sizeof(char *));
environ = P;
}
environ[cnt + 1] = NULL;