diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-02-19 19:54:43 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-02-19 19:54:43 +0000 |
commit | 4ffaad8c33eea799dc843f5b07cca7c433ea0b6d (patch) | |
tree | bc0ad6a6e965fc0603c564f2179f0fa8aea53cdc /openbsd-compat/setenv.c | |
parent | 7387fdb6b58b8ba26e1ec7f476d2a5b57236bae1 (diff) | |
download | openssh-git-4ffaad8c33eea799dc843f5b07cca7c433ea0b6d.tar.gz |
- (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.c | 2 |
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; |