aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBill Fenner <fenner@FreeBSD.org>1996-05-02 05:31:13 +0000
committerBill Fenner <fenner@FreeBSD.org>1996-05-02 05:31:13 +0000
commitaf00f8007c7a6f86a2a2c686499ba2733e8c2971 (patch)
treeef1184d2e7f95f18870d4fbe758e080a0325f8bd /sys
parenta251b9e77e06ac856f1a315a935b9ed8685d2147 (diff)
downloadsrc-af00f8007c7a6f86a2a2c686499ba2733e8c2971.tar.gz
src-af00f8007c7a6f86a2a2c686499ba2733e8c2971.zip
Size temp var correctly; buf[4*sizeof "123"] is not long enough
to store "192.252.119.189\0".
Notes
Notes: svn path=/head/; revision=15524
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/tcp_input.c4
-rw-r--r--sys/netinet/tcp_reass.c4
-rw-r--r--sys/netinet/udp_usrreq.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index 17cfd32f0719..b38a5e785820 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tcp_input.c 8.12 (Berkeley) 5/24/95
- * $Id: tcp_input.c,v 1.43 1996/04/26 18:32:57 wollman Exp $
+ * $Id: tcp_input.c,v 1.44 1996/04/27 18:19:10 ache Exp $
*/
#ifndef TUBA_INCLUDE
@@ -378,7 +378,7 @@ findpcb:
*/
if (inp == NULL) {
if (log_in_vain && tiflags & TH_SYN) {
- char buf[4*sizeof "123"];
+ char buf[4*sizeof "123."];
strcpy(buf, inet_ntoa(ti->ti_dst));
log(LOG_INFO, "Connection attempt to TCP %s:%d"
diff --git a/sys/netinet/tcp_reass.c b/sys/netinet/tcp_reass.c
index 17cfd32f0719..b38a5e785820 100644
--- a/sys/netinet/tcp_reass.c
+++ b/sys/netinet/tcp_reass.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tcp_input.c 8.12 (Berkeley) 5/24/95
- * $Id: tcp_input.c,v 1.43 1996/04/26 18:32:57 wollman Exp $
+ * $Id: tcp_input.c,v 1.44 1996/04/27 18:19:10 ache Exp $
*/
#ifndef TUBA_INCLUDE
@@ -378,7 +378,7 @@ findpcb:
*/
if (inp == NULL) {
if (log_in_vain && tiflags & TH_SYN) {
- char buf[4*sizeof "123"];
+ char buf[4*sizeof "123."];
strcpy(buf, inet_ntoa(ti->ti_dst));
log(LOG_INFO, "Connection attempt to TCP %s:%d"
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index dd8fd6e88d8f..68f1ff56cf1c 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.22 1996/04/09 07:01:53 pst Exp $
+ * $Id: udp_usrreq.c,v 1.23 1996/04/27 18:19:12 ache 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"