From: Derrick Brashear Date: Mon, 5 May 2003 16:40:25 +0000 (+0000) Subject: mapname-allocate-enough-space-for-pr-nametoid-20030505 X-Git-Tag: openafs-devel-1_3_50~243 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=76832e229efa8ee34e0aeead0c13381f027e92fd;p=packages%2Fo%2Fopenafs.git mapname-allocate-enough-space-for-pr-nametoid-20030505 the alternative is to crash when we get a foreign user here --- diff --git a/src/viced/host.c b/src/viced/host.c index b2331979b..6ac7fffec 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -1226,7 +1226,7 @@ static int MapName_r(char *aname, char *acell, afs_int32 *aval) return 0; } foreign = 1; /* attempt cross-cell authentication */ - tname = (char *) malloc(anamelen+cnamelen+2); + tname = (char *) malloc(PR_MAXNAMELEN); if (!tname) { ViceLog(0, ("Failed malloc in MapName_r\n")); assert(0);