diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-04-17 21:20:58 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-04-17 21:20:58 -0700 |
commit | f7446fc6bbe9c25f7064ba76b2db4dd67691f7d0 (patch) | |
tree | 68e605b2bd790aedf5366ee7b93697e5cdc0238d /config.c | |
parent | ae57ec223b37556224010db93e71e3ceb2cf257b (diff) | |
parent | 0fa0514b9172186d018c884da296ac6705c3e07c (diff) | |
download | git-f7446fc6bbe9c25f7064ba76b2db4dd67691f7d0.tar.gz |
Merge branch 'maint-1.6.1' into maint
* maint-1.6.1:
Fix buffer overflow in config parser
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |