summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-11-15 18:27:26 -0800
committerJeremy Allison <jra@samba.org>2007-11-15 18:27:26 -0800
commitacb829ecc3b9af3f141425ecac032a7c722a1815 (patch)
treeb5f4f9d8d89096859509b419894ac68c6b62f029 /source3/utils
parentc261545449f71d9b347a37518dab0d5ae4116f8b (diff)
downloadsamba-acb829ecc3b9af3f141425ecac032a7c722a1815.tar.gz
samba-acb829ecc3b9af3f141425ecac032a7c722a1815.tar.bz2
samba-acb829ecc3b9af3f141425ecac032a7c722a1815.zip
Add MAX_DNS_NAME_LENGTH, remove more pstrings.
Jeremy. (This used to be commit a1725f4ff7ed375808c78ac661b539557748d0a5)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_lookup.c2
-rw-r--r--source3/utils/nmblookup.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_lookup.c b/source3/utils/net_lookup.c
index 5e3551b781..9060f8366a 100644
--- a/source3/utils/net_lookup.c
+++ b/source3/utils/net_lookup.c
@@ -99,7 +99,7 @@ static int net_lookup_ldap(int argc, const char **argv)
TALLOC_CTX *ctx;
NTSTATUS status;
int ret;
- char h_name[HOST_NAME_MAX];
+ char h_name[MAX_DNS_NAME_LENGTH];
if (argc > 0)
domain = argv[0];
diff --git a/source3/utils/nmblookup.c b/source3/utils/nmblookup.c
index 4ce6968473..dd2dddb7a8 100644
--- a/source3/utils/nmblookup.c
+++ b/source3/utils/nmblookup.c
@@ -197,7 +197,7 @@ static bool query_one(const char *lookup, unsigned int lookup_type)
for (j=0;j<count;j++) {
char addr[INET6_ADDRSTRLEN];
if (translate_addresses) {
- char h_name[HOST_NAME_MAX];
+ char h_name[MAX_DNS_NAME_LENGTH];
h_name[0] = '\0';
if (sys_getnameinfo((const struct sockaddr *)&ip_list[j],
sizeof(struct sockaddr_storage),