summaryrefslogtreecommitdiffstats
path: root/libexec/telnetd
diff options
context:
space:
mode:
authorasmodai <asmodai@FreeBSD.org>2001-02-07 22:25:56 +0000
committerasmodai <asmodai@FreeBSD.org>2001-02-07 22:25:56 +0000
commit5cf198e77a11a11a0eacfb25b60ec45be586d5ca (patch)
treed2625880c21a819de1bdeeeac3e39d3800b2c28a /libexec/telnetd
parentdfe4864cef193cb716dc045f2db67b06e68c2487 (diff)
downloadFreeBSD-src-5cf198e77a11a11a0eacfb25b60ec45be586d5ca.zip
FreeBSD-src-5cf198e77a11a11a0eacfb25b60ec45be586d5ca.tar.gz
Synch: Properly constify sccsid[].
Replace bcopy() with memmove().
Diffstat (limited to 'libexec/telnetd')
-rw-r--r--libexec/telnetd/sys_term.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/telnetd/sys_term.c b/libexec/telnetd/sys_term.c
index 63b6ede..c2fb6fc 100644
--- a/libexec/telnetd/sys_term.c
+++ b/libexec/telnetd/sys_term.c
@@ -33,7 +33,7 @@
#ifndef lint
#if 0
-static char sccsid[] = "@(#)sys_term.c 8.2 (Berkeley) 12/15/93";
+static const char sccsid[] = "@(#)sys_term.c 8.2 (Berkeley) 12/15/93";
#endif
static const char rcsid[] =
"$FreeBSD$";
@@ -234,7 +234,7 @@ copy_termbuf(cp, len)
{
if (len > sizeof(termbuf))
len = sizeof(termbuf);
- bcopy(cp, (char *)&termbuf, len);
+ memmove((char *)&termbuf, cp, len);
termbuf2 = termbuf;
}
#endif /* defined(LINEMODE) && defined(TIOCPKT_IOCTL) */
OpenPOWER on IntegriCloud