Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/net botched strncpy -> strlcpy
details: https://anonhg.NetBSD.org/src/rev/66f52c0d3f2b
branches: trunk
changeset: 525745:66f52c0d3f2b
user: groo <groo%NetBSD.org@localhost>
date: Tue Apr 16 19:17:17 2002 +0000
description:
botched strncpy -> strlcpy
from xs%kittenz.org@localhost
diffstat:
lib/libc/net/res_debug.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 23fdca127ebf -r 66f52c0d3f2b lib/libc/net/res_debug.c
--- a/lib/libc/net/res_debug.c Tue Apr 16 19:16:22 2002 +0000
+++ b/lib/libc/net/res_debug.c Tue Apr 16 19:17:17 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: res_debug.c,v 1.30 2000/12/20 20:44:14 christos Exp $ */
+/* $NetBSD: res_debug.c,v 1.31 2002/04/16 19:17:17 groo Exp $ */
/*-
* Copyright (c) 1985, 1990, 1993
@@ -81,7 +81,7 @@
static char sccsid[] = "@(#)res_debug.c 8.1 (Berkeley) 6/4/93";
static char rcsid[] = "Id: res_debug.c,v 8.20 1997/06/01 20:34:37 vixie Exp ";
#else
-__RCSID("$NetBSD: res_debug.c,v 1.30 2000/12/20 20:44:14 christos Exp $");
+__RCSID("$NetBSD: res_debug.c,v 1.31 2002/04/16 19:17:17 groo Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -1108,7 +1108,7 @@
register char *p;
if (value == 0) {
- strncpy(nbuf, "0 secs", sizeof(nbuf) - 1);
+ strlcpy(nbuf, "0 secs", sizeof(nbuf));
return(nbuf);
}
Home |
Main Index |
Thread Index |
Old Index