=== modified file 'appl/gssmask/gssmask.c'
--- old/appl/gssmask/gssmask.c	2011-05-21 18:57:31 +0000
+++ new/appl/gssmask/gssmask.c	2011-10-01 13:14:49 +0000
@@ -55,7 +55,7 @@
     struct handle *handles;
     struct sockaddr_storage sa;
     socklen_t salen;
-    char servername[MAXHOSTNAMELEN];
+    char servername[MaxHostNameLen];
 };
 
 FILE *logfile;
@@ -1092,7 +1092,7 @@
     if (moniker) {
 	c->moniker = estrdup(moniker);
     } else {
-	char hostname[MAXHOSTNAMELEN];
+	char hostname[MaxHostNameLen];
 	gethostname(hostname, sizeof(hostname));
 	ret = asprintf(&c->moniker, "gssmask: %s:%d", hostname, port);
 	if (ret == -1)

=== modified file 'appl/kf/kfd.c'
--- old/appl/kf/kfd.c	2009-11-25 05:42:02 +0000
+++ new/appl/kf/kfd.c	2011-10-01 13:14:49 +0000
@@ -128,7 +128,7 @@
     krb5_ticket *ticket;
     char *name;
     char ret_string[10];
-    char hostname[MAXHOSTNAMELEN];
+    char hostname[MaxHostNameLen];
     krb5_data data;
     krb5_data remotename;
     krb5_data tk_file;

=== modified file 'appl/login/login_access.c'
--- old/appl/login/login_access.c	2008-09-13 09:21:03 +0000
+++ new/appl/login/login_access.c	2011-10-01 13:14:49 +0000
@@ -163,11 +163,11 @@
 
 static char *myhostname(void)
 {
-    static char name[MAXHOSTNAMELEN + 1] = "";
+    static char name[MaxHostNameLen + 1] = "";
 
     if (name[0] == 0) {
 	gethostname(name, sizeof(name));
-	name[MAXHOSTNAMELEN] = 0;
+	name[MaxHostNameLen] = 0;
     }
     return (name);
 }

=== modified file 'appl/test/tcp_server.c'
--- old/appl/test/tcp_server.c	2009-11-25 05:42:02 +0000
+++ new/appl/test/tcp_server.c	2011-10-01 13:14:49 +0000
@@ -44,7 +44,7 @@
     krb5_principal server;
     krb5_ticket *ticket;
     char *name;
-    char hostname[MAXHOSTNAMELEN];
+    char hostname[MaxHostNameLen];
     krb5_data packet;
     krb5_data data;
     uint32_t len, net_len;

=== modified file 'lib/gssapi/spnego/accept_sec_context.c'
--- old/lib/gssapi/spnego/accept_sec_context.c	2011-05-21 18:57:31 +0000
+++ new/lib/gssapi/spnego/accept_sec_context.c	2011-10-01 13:14:49 +0000
@@ -366,7 +366,7 @@
     if (verify_p) {
 	gss_name_t name = GSS_C_NO_NAME;
 	gss_buffer_desc namebuf;
-	char *str = NULL, *host, hostname[MAXHOSTNAMELEN];
+	char *str = NULL, *host, hostname[MaxHostNameLen];
 
 	host = getenv("GSSAPI_SPNEGO_NAME");
 	if (host == NULL || issuid()) {

=== modified file 'lib/krb5/get_addrs.c'
--- old/lib/krb5/get_addrs.c	2011-04-05 05:45:33 +0000
+++ new/lib/krb5/get_addrs.c	2011-10-01 13:14:49 +0000
@@ -47,7 +47,7 @@
 gethostname_fallback (krb5_context context, krb5_addresses *res)
 {
     krb5_error_code ret;
-    char hostname[MAXHOSTNAMELEN];
+    char hostname[MaxHostNameLen];
     struct hostent *hostent;
 
     if (gethostname (hostname, sizeof(hostname))) {

=== modified file 'lib/krb5/get_host_realm.c'
--- old/lib/krb5/get_host_realm.c	2011-04-30 03:25:05 +0000
+++ new/lib/krb5/get_host_realm.c	2011-10-01 13:14:49 +0000
@@ -93,7 +93,7 @@
 	       krb5_realm **realms)
 {
     static const char *default_labels[] = { "_kerberos", NULL };
-    char dom[MAXHOSTNAMELEN];
+    char dom[MaxHostNameLen];
     struct rk_dns_reply *r;
     const char **labels;
     char **config_labels;
@@ -221,7 +221,7 @@
 		    krb5_realm **realms)
 {
     const char *host = targethost;
-    char hostname[MAXHOSTNAMELEN];
+    char hostname[MaxHostNameLen];
     krb5_error_code ret;
     int use_dns;
 

=== modified file 'lib/krb5/krbhst-test.c'
--- old/lib/krb5/krbhst-test.c	2009-05-04 06:17:40 +0000
+++ new/lib/krb5/krbhst-test.c	2011-10-01 13:14:49 +0000
@@ -85,7 +85,7 @@
     krb5_init_context (&context);
     for(i = 0; i < argc; i++) {
 	krb5_krbhst_handle handle;
-	char host[MAXHOSTNAMELEN];
+	char host[MaxHostNameLen];
 
 	for (j = 0; j < sizeof(types)/sizeof(*types); ++j) {
 	    printf ("%s for %s:\n", type_str[j], argv[i]);

=== modified file 'lib/krb5/krbhst.c'
--- old/lib/krb5/krbhst.c	2011-05-21 18:57:31 +0000
+++ new/lib/krb5/krbhst.c	2011-10-01 13:14:49 +0000
@@ -1020,7 +1020,7 @@
     krb5_error_code ret;
     int nhost = 0;
     krb5_krbhst_handle handle;
-    char host[MAXHOSTNAMELEN];
+    char host[MaxHostNameLen];
     krb5_krbhst_info *hostinfo;
 
     ret = krb5_krbhst_init(context, realm, type, &handle);

=== modified file 'lib/krb5/principal.c'
--- old/lib/krb5/principal.c	2011-05-21 18:57:31 +0000
+++ new/lib/krb5/principal.c	2011-10-01 13:14:49 +0000
@@ -1033,7 +1033,7 @@
 			    krb5_principal *ret_princ)
 {
     krb5_error_code ret;
-    char localhost[MAXHOSTNAMELEN];
+    char localhost[MaxHostNameLen];
     char **realms, *host = NULL;
 
     if(type != KRB5_NT_SRV_HST && type != KRB5_NT_UNKNOWN) {

=== modified file 'lib/krb5/verify_init.c'
--- old/lib/krb5/verify_init.c	2011-05-21 18:57:31 +0000
+++ new/lib/krb5/verify_init.c	2011-10-01 13:14:49 +0000
@@ -86,7 +86,7 @@
     krb5_data_zero (&req);
 
     if (ap_req_server == NULL) {
-	char local_hostname[MAXHOSTNAMELEN];
+	char local_hostname[MaxHostNameLen];
 
 	if (gethostname (local_hostname, sizeof(local_hostname)) < 0) {
 	    ret = errno;

=== modified file 'lib/roken/getaddrinfo_hostspec.c'
--- old/lib/roken/getaddrinfo_hostspec.c	2011-05-21 18:57:31 +0000
+++ new/lib/roken/getaddrinfo_hostspec.c	2011-10-01 13:14:49 +0000
@@ -45,7 +45,7 @@
 {
     const char *p;
     char portstr[NI_MAXSERV];
-    char host[MAXHOSTNAMELEN];
+    char host[MaxHostNameLen];
     struct addrinfo hints;
     int hostspec_len;
 

