convert-from-bsd-to-posix-string-and-memory-functions-20010807
[openafs.git] / src / login / setenv.c
index df06213..614c867 100644 (file)
@@ -68,7 +68,7 @@ setenv(name, value, rewrite)
                            (cnt + 2)));
                        if (!P)
                                return(-1);
-                       bcopy(environ, P, cnt * sizeof(char *));
+                       memcpy(P, environ, cnt * sizeof(char *));
                        environ = P;
                }
                environ[cnt + 1] = NULL;