Merge branch 'ef/maint-strbuf-init'

* ef/maint-strbuf-init:
  config: support values longer than 1023 bytes
  strbuf: make sure buffer is zero-terminated
This commit is contained in:
Junio C Hamano
2011-04-27 11:36:43 -07:00
3 changed files with 12 additions and 12 deletions

View File

@ -44,7 +44,7 @@ LONG_VALUE=$(printf "x%01021dx a" 7)
test_expect_success 'do not crash on special long config line' '
setup &&
git config section.key "$LONG_VALUE" &&
check section.key "fatal: bad config file line 2 in .git/config"
check section.key "$LONG_VALUE"
'
test_done