diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-03-04 00:19:25 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-03-04 00:19:25 +0000 |
commit | 11c9efbb72c43c56f695bc0936a159533cf6a8e8 (patch) | |
tree | 83025c33b8706b7ed96128f90cecafcc0f6c280b /lib/libc | |
parent | aef232e3806f311dd3bb6cf94d0cfce6fa21f110 (diff) |
s/strncpy/strlcpy/
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/net/res_send.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/net/res_send.c b/lib/libc/net/res_send.c index 282675a533d..9e2c2e71691 100644 --- a/lib/libc/net/res_send.c +++ b/lib/libc/net/res_send.c @@ -1,4 +1,4 @@ -/* $OpenBSD: res_send.c,v 1.13 2003/01/28 04:58:00 marc Exp $ */ +/* $OpenBSD: res_send.c,v 1.14 2003/03/04 00:19:24 itojun Exp $ */ /* * ++Copyright++ 1985, 1989, 1993 @@ -64,7 +64,7 @@ static char sccsid[] = "@(#)res_send.c 8.1 (Berkeley) 6/4/93"; static char rcsid[] = "$From: res_send.c,v 8.12 1996/10/08 04:51:06 vixie Exp $"; #else -static char rcsid[] = "$OpenBSD: res_send.c,v 1.13 2003/01/28 04:58:00 marc Exp $"; +static char rcsid[] = "$OpenBSD: res_send.c,v 1.14 2003/03/04 00:19:24 itojun Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -145,8 +145,8 @@ static void Perror(FILE *, char *, int); if (getnameinfo(address, address->sa_len, abuf, sizeof(abuf), pbuf, sizeof(pbuf), NI_NUMERICHOST|NI_NUMERICSERV|NI_WITHSCOPEID) != 0) { - strncpy(abuf, "?", sizeof(abuf)); - strncpy(pbuf, "?", sizeof(pbuf)); + strlcpy(abuf, "?", sizeof(abuf)); + strlcpy(pbuf, "?", sizeof(pbuf)); } fprintf(file, "res_send: %s ([%s].%s): %s\n", string, abuf, pbuf, strerror(error)); |