summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2009-04-17 21:29:15 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-04-17 21:29:15 -0700
commit2d430c713372fc21f9acf1d8b745e7f4fbbe336c (patch)
tree0e296a2ff5134d836e6e903c5b32e20f02774615 /config.c
parenthook/update: example of how to prevent branch creation (diff)
parentdoc/gitattributes: clarify location of config text (diff)
downloadtgif-2d430c713372fc21f9acf1d8b745e7f4fbbe336c.tar.xz
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)