summaryrefslogtreecommitdiff
path: root/lib/libc/net/inet_neta.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-24 21:22:38 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-24 21:22:38 +0000
commit614d3b268363cdee32aba3cafe8e123fe69ac75d (patch)
tree9662f1a62a0bd0d9512daf0fa448d0a7f051956a /lib/libc/net/inet_neta.c
parent899eab9f01ad712357176d191d1b6a49639c11e3 (diff)
try to use strlcpy and snprintf more; ok various
Diffstat (limited to 'lib/libc/net/inet_neta.c')
-rw-r--r--lib/libc/net/inet_neta.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/net/inet_neta.c b/lib/libc/net/inet_neta.c
index ffcddd8d912..881a328ab02 100644
--- a/lib/libc/net/inet_neta.c
+++ b/lib/libc/net/inet_neta.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inet_neta.c,v 1.2 1997/04/05 21:13:12 millert Exp $ */
+/* $OpenBSD: inet_neta.c,v 1.3 2002/05/24 21:22:37 deraadt Exp $ */
/*
* Copyright (c) 1996 by Internet Software Consortium.
@@ -19,9 +19,9 @@
#if defined(LIBC_SCCS) && !defined(lint)
#if 0
-static const char rcsid[] = "$Id: inet_neta.c,v 1.2 1997/04/05 21:13:12 millert Exp $";
+static const char rcsid[] = "$Id: inet_neta.c,v 1.3 2002/05/24 21:22:37 deraadt Exp $";
#else
-static const char rcsid[] = "$OpenBSD: inet_neta.c,v 1.2 1997/04/05 21:13:12 millert Exp $";
+static const char rcsid[] = "$OpenBSD: inet_neta.c,v 1.3 2002/05/24 21:22:37 deraadt Exp $";
#endif
#endif
@@ -73,7 +73,7 @@ inet_neta(src, dst, size)
if (dst == odst) {
if (size < sizeof "0.0.0.0")
goto emsgsize;
- strcpy(dst, "0.0.0.0");
+ strlcpy(dst, "0.0.0.0", size);
}
return (odst);