$OpenBSD: patch-helpers_negotiate_auth_squid_kerb_auth_squid_kerb_auth_c,v 1.1.1.1 2013/01/02 10:12:02 sthen Exp $
--- helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth.c.orig	Thu Sep  1 18:24:45 2011
+++ helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth.c	Thu Sep  1 18:25:35 2011
@@ -114,7 +114,7 @@ char *gethost_name(void) {
   }
 
   freeaddrinfo(hres);
-  hostname[MAXHOSTNAMELEN]='\0';
+  hostname[MAXHOSTNAMELEN-1]='\0';
   return(strdup(hostname));
 }
 
