Re: [PATCH] Support "core.excludesfile = ~/.gitignore"
- From
- Eric Raible <raible@gmail.com>
- Date
- Aug 22, 2008, 16:58 UTC
- Message-ID
- <loom.20080822T165656-932@post.gmane.org>
- In-Reply-To
- <quack.20080821T2114.lthvdxtvg7b@roar.cs.berkeley.edu>
Karl Chen <quarl <at> cs.berkeley.edu> writes:
> +static char const *git_config_subst_userdir(char const *value) {
> + if (value[0] == '~' && value[1] == '/') {Might you want to check that strlen(value) is at least 2?
- Eric