Use MaxHostNameLen and MaxPathLen
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@536 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -72,8 +72,8 @@ RCSID("$Id$");
|
||||
#include <netinet/ip.h>
|
||||
|
||||
|
||||
#ifndef MAXHOSTNAMELEN
|
||||
#define MAXHOSTNAMELEN 64
|
||||
#ifndef MaxHostNameLen
|
||||
#define MaxHostNameLen 64
|
||||
#endif
|
||||
|
||||
#if defined(IPPROTO_IP) && defined(IP_TOS)
|
||||
@@ -81,7 +81,7 @@ int tos = -1;
|
||||
#endif /* defined(IPPROTO_IP) && defined(IP_TOS) */
|
||||
|
||||
char *hostname;
|
||||
static char _hostname[MAXHOSTNAMELEN];
|
||||
static char _hostname[MaxHostNameLen];
|
||||
|
||||
extern char *getenv();
|
||||
|
||||
|
@@ -48,7 +48,7 @@ RCSID("$Id$");
|
||||
|
||||
#ifdef NEWINIT
|
||||
#include <initreq.h>
|
||||
int utmp_len = MAXHOSTNAMELEN; /* sizeof(init_request.host) */
|
||||
int utmp_len = MaxHostNameLen; /* sizeof(init_request.host) */
|
||||
#else /* NEWINIT*/
|
||||
# ifdef HAVE_UTMPX_H
|
||||
# include <utmpx.h>
|
||||
|
@@ -789,13 +789,10 @@ terminaltypeok(s)
|
||||
return(1);
|
||||
}
|
||||
|
||||
#ifndef MAXHOSTNAMELEN
|
||||
#define MAXHOSTNAMELEN 64
|
||||
#endif /* MAXHOSTNAMELEN */
|
||||
|
||||
char *hostname;
|
||||
char host_name[MAXHOSTNAMELEN];
|
||||
char remote_host_name[MAXHOSTNAMELEN];
|
||||
char host_name[MaxHostNameLen];
|
||||
char remote_host_name[MaxHostNameLen];
|
||||
|
||||
#ifndef convex
|
||||
extern void telnet P((int, int));
|
||||
|
Reference in New Issue
Block a user