diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-04-17 21:06:11 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-04-17 21:06:11 -0700 |
commit | 0fa0514b9172186d018c884da296ac6705c3e07c (patch) | |
tree | f9a5ceda42948715bd283727e1b93fa13548163b /config.c | |
parent | bc69776aa12c68958e381e8c24e8faa172dde2d8 (diff) | |
parent | e0b3cc0dffbc965ffa33155cbdcf8d44716c134c (diff) | |
download | git-0fa0514b9172186d018c884da296ac6705c3e07c.tar.gz |
Merge branch 'maint-1.6.0' into maint-1.6.1
* maint-1.6.0:
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) |