summaryrefslogtreecommitdiffstats
path: root/sys/netinet/udp_usrreq.c
diff options
context:
space:
mode:
authorfenner <fenner@FreeBSD.org>1996-05-02 05:54:14 +0000
committerfenner <fenner@FreeBSD.org>1996-05-02 05:54:14 +0000
commit1284248a562d77b304b6e684d87aa12fdc1f2277 (patch)
tree443c456fd57adf0d61aa18d5e9ee19a8c2bcc3bb /sys/netinet/udp_usrreq.c
parent2163f66f9a784b5634efb13cc1f162789347f406 (diff)
downloadFreeBSD-src-1284248a562d77b304b6e684d87aa12fdc1f2277.zip
FreeBSD-src-1284248a562d77b304b6e684d87aa12fdc1f2277.tar.gz
Back out my stupid braino; I was thinking strlen and not sizeof.
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r--sys/netinet/udp_usrreq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index 68f1ff5..e2e52a9 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)udp_usrreq.c 8.6 (Berkeley) 5/23/95
- * $Id: udp_usrreq.c,v 1.23 1996/04/27 18:19:12 ache Exp $
+ * $Id: udp_usrreq.c,v 1.24 1996/05/02 05:31:13 fenner Exp $
*/
#include <sys/param.h>
@@ -280,7 +280,7 @@ udp_input(m, iphlen)
}
if (inp == NULL) {
if (log_in_vain) {
- char buf[4*sizeof "123."];
+ char buf[4*sizeof "123"];
strcpy(buf, inet_ntoa(ip->ip_dst));
log(LOG_INFO, "Connection attempt to UDP %s:%d"
OpenPOWER on IntegriCloud