be8168529b
It appears to have been heavily audited (at least as far as string format paranoia goes, and optimizes: snprintf() -> strlcpy()). PR: 22123 Submitted by: Joao Carlos Mendes Luis <jonny@jonny.eng.br> Obtained from: OpenBSD
22 lines
658 B
Plaintext
22 lines
658 B
Plaintext
# $OpenBSD: patch-ioc,v 1.1.1.1 2000/01/03 02:22:43 kevlo Exp $
|
|
--- io.c.orig Wed Dec 29 12:26:16 1999
|
|
+++ io.c Wed Dec 29 12:27:39 1999
|
|
@@ -52,7 +52,7 @@
|
|
|
|
while (++count < maxlen && term_flag == FALSE) {
|
|
|
|
- bcopy(&master, ©, sizeof(fd_set)); /* select() trashes copy */
|
|
+ memcpy(©, &master, sizeof(fd_set)); /* select() trashes copy */
|
|
deadline.tv_sec = maxwait;
|
|
deadline.tv_usec = 0;
|
|
|
|
@@ -115,7 +115,7 @@
|
|
nleft = nbytes;
|
|
|
|
do {
|
|
- bcopy(&master, ©, sizeof(fd_set)); /* select() trashes copy */
|
|
+ memcpy(©, &master, sizeof(fd_set)); /* select() trashes copy */
|
|
deadline.tv_sec = maxwait;
|
|
deadline.tv_usec = 0;
|
|
|