diff options
Diffstat (limited to 'nscd')
-rw-r--r-- | nscd/connections.c | 2 | ||||
-rw-r--r-- | nscd/gai.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/nscd/connections.c b/nscd/connections.c index 167b9913f4..8bd9a66be8 100644 --- a/nscd/connections.c +++ b/nscd/connections.c @@ -722,7 +722,7 @@ cannot set socket to close on exec: %s; disabling paranoia mode"), dbs[cnt].head = xmalloc (sizeof (struct database_pers_head) + (dbs[cnt].suggested_module * sizeof (ref_t))); - memset (dbs[cnt].head, '\0', sizeof (dbs[cnt].head)); + memset (dbs[cnt].head, '\0', sizeof (struct database_pers_head)); assert (~ENDREF == 0); memset (dbs[cnt].head->array, '\xff', dbs[cnt].suggested_module * sizeof (ref_t)); diff --git a/nscd/gai.c b/nscd/gai.c index 18fc62e7a0..2e706bdfe7 100644 --- a/nscd/gai.c +++ b/nscd/gai.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2004, 2005 Free Software Foundation, Inc. +/* Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 2004. @@ -25,6 +25,7 @@ #define __bind bind #define __sendto sendto #define __strchrnul strchrnul +#define __getline getline #include <getaddrinfo.c> |