summaryrefslogtreecommitdiff
path: root/nslcd/common.c
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2013-12-18 23:53:21 +0100
committerArthur de Jong <arthur@arthurdejong.org>2013-12-18 23:55:03 +0100
commit9f0285333e122c625c6055c3aebebc30f25b8702 (patch)
treeee5e634896b825d5633a521370f31fd967a5f432 /nslcd/common.c
parent23a41ce888caaea871bf3c20c83136e3f6002f2a (diff)
Centralise buffer sizes
Common buffer sizes are now stored centrally so it can be easily and consistently updated if required. Some buffers remain with locally defined sizes that do not match a global buffer size.
Diffstat (limited to 'nslcd/common.c')
-rw-r--r--nslcd/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nslcd/common.c b/nslcd/common.c
index ade9ca6..979be82 100644
--- a/nslcd/common.c
+++ b/nslcd/common.c
@@ -118,7 +118,7 @@ const char *signame(int signum)
const char *getfqdn(void)
{
static char *fqdn = NULL;
- char hostname[HOST_NAME_MAX + 1];
+ char hostname[BUFLEN_HOSTNAME];
int hostnamelen;
int i;
struct hostent *host = NULL;