Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-04-18 08:29:15 +0400
committerJunio C Hamano <gitster@pobox.com>2009-04-18 08:29:15 +0400
commit2d430c713372fc21f9acf1d8b745e7f4fbbe336c (patch)
tree0e296a2ff5134d836e6e903c5b32e20f02774615 /config.c
parentaed97c677cdfd1b9bbc9b33b5418ad4a29109082 (diff)
parentc4c86d238900fb8c99939a9b5003fa622d4dcce7 (diff)
Merge branch 'maint'
* maint: doc/gitattributes: clarify location of config text Fix buffer overflow in config parser git-apply: fix option description
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index b76fe4c6dc..2d70398b16 100644
--- a/config.c
+++ b/config.c
@@ -51,7 +51,7 @@ static char *parse_value(void)
for (;;) {
int c = get_next_char();
- if (len >= sizeof(value))
+ if (len >= sizeof(value) - 1)
return NULL;
if (c == '\n') {
if (quote)