diff options
author | Erik Faye-Lund <kusmabite@gmail.com> | 2011-04-10 22:54:18 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-04-11 14:10:06 -0700 |
commit | e96c19c50fb0807570b85cb5b8aae6dfcfa9b9ec (patch) | |
tree | 27fa8b42fe693cb101c83c5269f763f1e68ab7de /t/t7610-mergetool.sh | |
parent | strbuf: make sure buffer is zero-terminated (diff) | |
download | tgif-e96c19c50fb0807570b85cb5b8aae6dfcfa9b9ec.tar.xz |
config: support values longer than 1023 bytes
parse_value in config.c has a static buffer of 1024 bytes that it
parse the value into. This can sometimes be a problem when a
config file contains very long values.
It's particularly amusing that git-config already is able to write
such files, so it should probably be able to read them as well.
Fix this by using a strbuf instead of a fixed-size buffer.
Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7610-mergetool.sh')
0 files changed, 0 insertions, 0 deletions