From: Russ Allbery Date: Mon, 20 Nov 2006 23:55:40 +0000 (+0000) Subject: We were chopping one too many spaces off of ThisCell. X-Git-Tag: debian/1.4.2-3~5 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=a3e98f92b3419410d95ae8a3ba3fc1549050b9fa;p=packages%2Fo%2Fopenafs.git We were chopping one too many spaces off of ThisCell. --- diff --git a/src/auth/cellconfig.c b/src/auth/cellconfig.c index 978720163..ccf21936a 100644 --- a/src/auth/cellconfig.c +++ b/src/auth/cellconfig.c @@ -495,7 +495,7 @@ GetCellUnix(struct afsconf_dir *adir) p = tbuffer + strlen(tbuffer) - 1; while (p > tbuffer && isspace(*p)) p--; - *p = '\0'; + p[1] = '\0'; adir->cellName = strdup(tbuffer); return 0;