mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
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
13 lines
414 B
Plaintext
13 lines
414 B
Plaintext
# $OpenBSD: patch-relay_datac,v 1.1.1.1 2000/01/03 02:22:43 kevlo Exp $
|
|
--- relay_data.c.orig Wed Dec 29 12:28:21 1999
|
|
+++ relay_data.c Wed Dec 29 12:29:06 1999
|
|
@@ -39,7 +39,7 @@
|
|
|
|
while (logged_in == TRUE) {
|
|
|
|
- bcopy(&master, ©, sizeof(fd_set)); /* select() trashes copy */
|
|
+ memcpy(©, &master, sizeof(fd_set)); /* select() trashes copy */
|
|
deadline.tv_sec = maxwait;
|
|
deadline.tv_usec = 0;
|
|
|