Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/net get rid of bogus + 1
details: https://anonhg.NetBSD.org/src/rev/92f39fe106ff
branches: trunk
changeset: 789565:92f39fe106ff
user: christos <christos%NetBSD.org@localhost>
date: Thu Aug 22 10:04:28 2013 +0000
description:
get rid of bogus + 1
diffstat:
lib/libc/net/gethnamaddr.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r b9d91c7cc616 -r 92f39fe106ff lib/libc/net/gethnamaddr.c
--- a/lib/libc/net/gethnamaddr.c Thu Aug 22 10:00:43 2013 +0000
+++ b/lib/libc/net/gethnamaddr.c Thu Aug 22 10:04:28 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gethnamaddr.c,v 1.82 2013/08/19 07:18:42 christos Exp $ */
+/* $NetBSD: gethnamaddr.c,v 1.83 2013/08/22 10:04:28 christos Exp $ */
/*
* ++Copyright++ 1985, 1988, 1993
@@ -57,7 +57,7 @@
static char sccsid[] = "@(#)gethostnamadr.c 8.1 (Berkeley) 6/4/93";
static char rcsid[] = "Id: gethnamaddr.c,v 8.21 1997/06/01 20:34:37 vixie Exp ";
#else
-__RCSID("$NetBSD: gethnamaddr.c,v 1.82 2013/08/19 07:18:42 christos Exp $");
+__RCSID("$NetBSD: gethnamaddr.c,v 1.83 2013/08/22 10:04:28 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -242,7 +242,7 @@
int toobig = 0;
char tbuf[MAXDNAME];
char *aliases[MAXALIASES];
- char *addr_ptrs[MAXADDRS + 1];
+ char *addr_ptrs[MAXADDRS];
const char *tname;
int (*name_ok)(const char *);
@@ -912,7 +912,7 @@
size_t len, anum, num, i;
FILE *hf;
char *aliases[MAXALIASES];
- char *addr_ptrs[MAXADDRS + 1];
+ char *addr_ptrs[MAXADDRS];
_DIAGASSERT(name != NULL);
Home |
Main Index |
Thread Index |
Old Index