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:
Johan Danielsson
1996-05-13 02:07:52 +00:00
parent 69cfc74ba3
commit 446b212817
14 changed files with 38 additions and 44 deletions

View File

@@ -8,7 +8,7 @@ RCSID("$Id$");
char*
getcwd(char *path, int size)
{
char xxx[MAXPATHLEN];
char xxx[MaxPathLen];
char *ret;
ret = getwd(xxx);
if(ret)

View File

@@ -77,8 +77,8 @@ __ivaliduser(FILE *hostf, u_int32_t raddr, const char *luser, const char *ruser)
{
register char *user, *p;
int ch;
char buf[MAXHOSTNAMELEN + 128]; /* host + login */
char hname[MAXHOSTNAMELEN];
char buf[MaxHostNameLen + 128]; /* host + login */
char hname[MaxHostNameLen];
struct hostent *hp;
/* Presumed guilty until proven innocent. */
int userok = 0, hostok = 0;