X-Git-Url: http://git.scripts.mit.edu/?a=blobdiff_plain;f=setup.c;h=5432a31b62800bfba4d5a19226946ea30c5446a4;hb=c536c0755f6450b7bcce499cfda171f8c6d1e593;hp=dbf41387204766981ebda444bc56a0884f9341f5;hpb=fbaa22678b10061bcbcc3ed8ed366931c39e6301;p=git.git diff --git a/setup.c b/setup.c index dbf4138720..5432a31b62 100644 --- a/setup.c +++ b/setup.c @@ -563,7 +563,7 @@ static const char *setup_git_directory_gently_1(int *nongit_ok) { const char *env_ceiling_dirs = getenv(CEILING_DIRECTORIES_ENVIRONMENT); struct string_list ceiling_dirs = STRING_LIST_INIT_DUP; - static char cwd[PATH_MAX+1]; + static char cwd[PATH_MAX + 1]; const char *gitdirenv, *ret; char *gitfile; int len, offset, offset_parent, ceil_offset = -1; @@ -578,7 +578,7 @@ static const char *setup_git_directory_gently_1(int *nongit_ok) if (nongit_ok) *nongit_ok = 0; - if (!getcwd(cwd, sizeof(cwd)-1)) + if (!getcwd(cwd, sizeof(cwd) - 1)) die_errno("Unable to read current working directory"); offset = len = strlen(cwd);