Merge branch 'jm/maint-strncpy-diff-no-index'
commit653787aea5cddc9d79dcd1431d1fc76b1e7a6b51
authorJunio C Hamano <gitster@pobox.com>
Thu, 26 Apr 2012 17:56:19 +0000 (26 10:56 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 26 Apr 2012 17:56:19 +0000 (26 10:56 -0700)
treef4cb99569da5aa061f2612ce07c9595632b8ff9f
parent210a75c38c2574a7a3a2b4e8178203cc9809889c
parent875b91b35d2517773495e8404f31fde8c5cbd27d
Merge branch 'jm/maint-strncpy-diff-no-index'

The "diff --no-index" codepath used limited-length buffers,
risking pathnames getting truncated.  Update it to use the
strbuf API.

By Jim Meyering (1) and Junio C Hamano (1)
* jm/maint-strncpy-diff-no-index:
  diff --no-index: use strbuf for temporary pathnames
  diff: avoid stack-buffer-read-overrun for very long name