Permalink
Browse files

symbolic constant UBDNS_PRESLEN_NAME

  • Loading branch information...
1 parent 54d8b90 commit 24fc8e954804bd62378fa4ecce2f37e2542d4868 @edmonds committed Sep 26, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −1 lookup.c
  2. +1 −0 ubdns.h
View
@@ -299,7 +299,7 @@ ubdns_lookup_reverse(const void *addr, int af) {
ubdns_check_result(res) &&
res->data[0] != NULL)
{
- char name[1025];
+ char name[UBDNS_PRESLEN_NAME];
domain_to_str((const uint8_t *) res->data[0], res->len[0], name);
return (strdup(name));
}
View
@@ -47,6 +47,7 @@
#define UBDNS_RESOLVCONF "/etc/ubdns/resolv.conf"
#define SYSTEM_RESOLVCONF "/etc/resolv.conf"
+#define UBDNS_PRESLEN_NAME 1025
#define UBDNS_TYPE_A 1
#define UBDNS_TYPE_PTR 12
#define UBDNS_TYPE_AAAA 28

0 comments on commit 24fc8e9

Please sign in to comment.