diff options
Diffstat (limited to 'src/lib/libc/net/inet_neta.c')
| -rw-r--r-- | src/lib/libc/net/inet_neta.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libc/net/inet_neta.c b/src/lib/libc/net/inet_neta.c index ffcddd8d91..881a328ab0 100644 --- a/src/lib/libc/net/inet_neta.c +++ b/src/lib/libc/net/inet_neta.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: inet_neta.c,v 1.2 1997/04/05 21:13:12 millert Exp $ */ | 1 | /* $OpenBSD: inet_neta.c,v 1.3 2002/05/24 21:22:37 deraadt Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Copyright (c) 1996 by Internet Software Consortium. | 4 | * Copyright (c) 1996 by Internet Software Consortium. |
| @@ -19,9 +19,9 @@ | |||
| 19 | 19 | ||
| 20 | #if defined(LIBC_SCCS) && !defined(lint) | 20 | #if defined(LIBC_SCCS) && !defined(lint) |
| 21 | #if 0 | 21 | #if 0 |
| 22 | static const char rcsid[] = "$Id: inet_neta.c,v 1.2 1997/04/05 21:13:12 millert Exp $"; | 22 | static const char rcsid[] = "$Id: inet_neta.c,v 1.3 2002/05/24 21:22:37 deraadt Exp $"; |
| 23 | #else | 23 | #else |
| 24 | static const char rcsid[] = "$OpenBSD: inet_neta.c,v 1.2 1997/04/05 21:13:12 millert Exp $"; | 24 | static const char rcsid[] = "$OpenBSD: inet_neta.c,v 1.3 2002/05/24 21:22:37 deraadt Exp $"; |
| 25 | #endif | 25 | #endif |
| 26 | #endif | 26 | #endif |
| 27 | 27 | ||
| @@ -73,7 +73,7 @@ inet_neta(src, dst, size) | |||
| 73 | if (dst == odst) { | 73 | if (dst == odst) { |
| 74 | if (size < sizeof "0.0.0.0") | 74 | if (size < sizeof "0.0.0.0") |
| 75 | goto emsgsize; | 75 | goto emsgsize; |
| 76 | strcpy(dst, "0.0.0.0"); | 76 | strlcpy(dst, "0.0.0.0", size); |
| 77 | } | 77 | } |
| 78 | return (odst); | 78 | return (odst); |
| 79 | 79 | ||
