From 8835a8910513621a4c20a0ede9a4bdeee947cbd4 Mon Sep 17 00:00:00 2001 From: Ben Lindstrom Date: Fri, 5 Jan 2001 06:09:52 +0000 Subject: - (bal) bsd-getcwd.c and bsd-setenv.c changed from bcopy() to memmove() --- bsd-getcwd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bsd-getcwd.c') diff --git a/bsd-getcwd.c b/bsd-getcwd.c index cca417787..273a0487c 100644 --- a/bsd-getcwd.c +++ b/bsd-getcwd.c @@ -119,7 +119,7 @@ getcwd(char *pt,size_t size) * 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); } @@ -170,7 +170,7 @@ getcwd(char *pt,size_t size) 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)) { @@ -202,13 +202,13 @@ getcwd(char *pt,size_t size) 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. */ -- cgit v1.2.3