path: root/setup.c
diff options
authorJunio C Hamano <>2007-03-11 06:07:26 (GMT)
committerJunio C Hamano <>2007-03-11 06:07:26 (GMT)
commited287ab7fa71528e8de288988d1662eebae64002 (patch)
treefa8ab5768bfce68c5923b674c13d514942a3954c /setup.c
parentbd1fc628b8d456bdaea3e10d435cf1e98bc5d8a8 (diff)
parent60fa08ed617dd148a9843bfdef2dfecf2ef60123 (diff)
Merge branch 'maint'
* maint: git.el: Retrieve commit log information from .dotest directory. git.el: Avoid appending a signoff line that is already present. setup_git_directory_gently: fix off-by-one error user-manual: install user manual stylesheet with other web documents user-manual: fix rendering of history diagrams user-manual: fix missing colon in git-show example user-manual: fix inconsistent use of pull and merge user-manual: fix inconsistent example glossary: fix overoptimistic automatic linking of defined terms Documentation: s/seperator/separator/ Adjust reflog filemode in shared repository
Diffstat (limited to 'setup.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.c b/setup.c
index dda67d2..a45ea83 100644
--- a/setup.c
+++ b/setup.c
@@ -216,7 +216,7 @@ const char *setup_git_directory_gently(int *nongit_ok)
die("Not a git repository: '%s'", gitdirenv);
- if (!getcwd(cwd, sizeof(cwd)) || cwd[0] != '/')
+ if (!getcwd(cwd, sizeof(cwd)-1) || cwd[0] != '/')
die("Unable to read current working directory");
offset = len = strlen(cwd);