20010105
- (bal) contrib/caldera/ provided by Tim Rice <tim@multitalents.net>
+ - (bal) bsd-getcwd.c and bsd-setenv.c changed from bcopy() to memmove()
20010104
- (djm) Fix memory leak on systems with BROKEN_GETADDRINFO. Based on
* path to the beginning of the buffer, but it's always
* been that way and stuff would probably break.
*/
- bcopy(bpt, pt, ept - bpt);
+ memmove(bpt, pt, ept - bpt);
free(up);
return (pt);
}
goto notfound;
if (ISDOT(dp))
continue;
- bcopy(dp->d_name, bup, dp->d_namlen + 1);
+ memmove(dp->d_name, bup, dp->d_namlen + 1);
/* Save the first error for later. */
if (lstat(up, &s)) {
pt = npt;
bpt = pt + off;
ept = pt + ptsize;
- bcopy(bpt, ept - len, len);
+ memmove(bpt, ept - len, len);
bpt = ept - len;
}
if (!first)
*--bpt = '/';
bpt -= dp->d_namlen;
- bcopy(dp->d_name, bpt, dp->d_namlen);
+ memmove(dp->d_name, bpt, dp->d_namlen);
(void)closedir(dir);
/* Truncate any file name. */
(cnt + 2)));
if (!P)
return (-1);
- bcopy(environ, P, cnt * sizeof(char *));
+ memmove(environ, P, cnt * sizeof(char *));
environ = P;
}
environ[cnt + 1] = NULL;