From a3e98f92b3419410d95ae8a3ba3fc1549050b9fa Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Mon, 20 Nov 2006 23:55:40 +0000 Subject: [PATCH] We were chopping one too many spaces off of ThisCell. --- src/auth/cellconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5