]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
We were chopping one too many spaces off of ThisCell.
authorRuss Allbery <rra@debian.org>
Mon, 20 Nov 2006 23:55:40 +0000 (23:55 +0000)
committerRuss Allbery <rra@debian.org>
Mon, 20 Nov 2006 23:55:40 +0000 (23:55 +0000)
src/auth/cellconfig.c

index 978720163d9176a89ab3c60443c9b702887a09fc..ccf21936a81d4cdda89e213cc377744c170cc75d 100644 (file)
@@ -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;