diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2004-03-15 09:45:32 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2004-03-15 09:45:32 +0000 |
commit | ffbe409c1d8d2537fec5c27393f1c1edfa1a0c8e (patch) | |
tree | e070ad5c12f0887be897568c6cf5bfd2272ae96c /sys/netinet | |
parent | 9d7299e851092e181d3131d4ae80d3112ed189ee (diff) |
strncpy -> strlcpy. ok markus@ "(this is even unused crap, i think)"
from Patrick Latifi
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_input.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 4472fcbe4b0..15d1c6b7e42 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_input.c,v 1.117 2004/02/15 11:16:08 markus Exp $ */ +/* $OpenBSD: ip_input.c,v 1.118 2004/03/15 09:45:31 tedu Exp $ */ /* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */ /* @@ -254,9 +254,9 @@ ip_init() for (i = 0; defbaddynamicports_udp[i] != 0; i++) DP_SET(baddynamicports.udp, defbaddynamicports_tcp[i]); - strncpy(ipsec_def_enc, IPSEC_DEFAULT_DEF_ENC, sizeof(ipsec_def_enc)); - strncpy(ipsec_def_auth, IPSEC_DEFAULT_DEF_AUTH, sizeof(ipsec_def_auth)); - strncpy(ipsec_def_comp, IPSEC_DEFAULT_DEF_COMP, sizeof(ipsec_def_comp)); + strlcpy(ipsec_def_enc, IPSEC_DEFAULT_DEF_ENC, sizeof(ipsec_def_enc)); + strlcpy(ipsec_def_auth, IPSEC_DEFAULT_DEF_AUTH, sizeof(ipsec_def_auth)); + strlcpy(ipsec_def_comp, IPSEC_DEFAULT_DEF_COMP, sizeof(ipsec_def_comp)); } struct sockaddr_in ipaddr = { sizeof(ipaddr), AF_INET }; |