summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-04-08 08:00:06 +0000
committerbrian <brian@FreeBSD.org>1999-04-08 08:00:06 +0000
commit603fdffe33ca10e416e1c7770517bbc4e85f2fb9 (patch)
tree2dccbaae014b7801211782340d8e2ccc6c3b65ed /lib
parent33869a012a1db7613ae80cefc2cf5226ad9a6494 (diff)
downloadFreeBSD-src-603fdffe33ca10e416e1c7770517bbc4e85f2fb9.zip
FreeBSD-src-603fdffe33ca10e416e1c7770517bbc4e85f2fb9.tar.gz
bcopy -> memmove
Suggested by: archie
Diffstat (limited to 'lib')
-rw-r--r--lib/libutil/logwtmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libutil/logwtmp.c b/lib/libutil/logwtmp.c
index acbb4c9..a3cd87e 100644
--- a/lib/libutil/logwtmp.c
+++ b/lib/libutil/logwtmp.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)logwtmp.c 8.1 (Berkeley) 6/4/93";
#else
static const char rcsid[] =
- "$Id: logwtmp.c,v 1.9 1999/04/07 08:27:04 brian Exp $";
+ "$Id: logwtmp.c,v 1.10 1999/04/07 14:03:31 brian Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
@@ -65,7 +65,7 @@ trimdomain(char *fullhost, int hostsize)
first = 0;
if (gethostname(domain, sizeof(domain) - 1) == 0 &&
(s = strchr(domain, '.')))
- bcopy(s + 1, domain, strlen(s + 1) + 1);
+ memmove(domain, s + 1, strlen(s + 1) + 1);
else
domain[0] = '\0';
}
OpenPOWER on IntegriCloud