diff options
author | Jeremy Allison <jra@samba.org> | 2007-11-15 18:27:26 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-11-15 18:27:26 -0800 |
commit | acb829ecc3b9af3f141425ecac032a7c722a1815 (patch) | |
tree | b5f4f9d8d89096859509b419894ac68c6b62f029 /source3/utils | |
parent | c261545449f71d9b347a37518dab0d5ae4116f8b (diff) | |
download | samba-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.c | 2 | ||||
-rw-r--r-- | source3/utils/nmblookup.c | 2 |
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), |