Synch: Properly constify sccsid[].
Replace bcopy() with memmove().
This commit is contained in:
parent
197640b1d7
commit
1debc9f69d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=72143
@ -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) */
|
||||
|
Loading…
Reference in New Issue
Block a user