summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-04-17 21:29:15 -0700
committerJunio C Hamano <gitster@pobox.com>2009-04-17 21:29:15 -0700
commit2d430c713372fc21f9acf1d8b745e7f4fbbe336c (patch)
tree0e296a2ff5134d836e6e903c5b32e20f02774615 /config.c
parentaed97c677cdfd1b9bbc9b33b5418ad4a29109082 (diff)
parentc4c86d238900fb8c99939a9b5003fa622d4dcce7 (diff)
downloadgit-2d430c713372fc21f9acf1d8b745e7f4fbbe336c.tar.gz
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)