From: Derrick Brashear Date: Thu, 15 May 2003 16:47:15 +0000 (+0000) Subject: STABLE12-mapname-allocate-enough-space-for-pr-nametoid-20030505 X-Git-Tag: openafs-stable-1_2_10~74 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=01588555917f584ef1485deabe8259ecf1baf93b;p=packages%2Fo%2Fopenafs.git STABLE12-mapname-allocate-enough-space-for-pr-nametoid-20030505 the alternative is to crash when we get a foreign user here (cherry picked from commit 76832e229efa8ee34e0aeead0c13381f027e92fd) --- diff --git a/src/viced/host.c b/src/viced/host.c index 8d78d9261..d87980f54 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -1217,7 +1217,7 @@ static MapName_r(aname, acell, aval) return 0; } foreign = 1; /* attempt cross-cell authentication */ - tname = (char *) malloc(anamelen+cnamelen+2); + tname = (char *) malloc(PR_MAXNAMELEN); strcpy(tname, aname); tname[anamelen] = '@'; strcpy(tname+anamelen+1, acell);