summaryrefslogtreecommitdiffstats
path: root/diffcore-pickaxe.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2024-04-16 22:16:05 +0200
committerJunio C Hamano <gitster@pobox.com>2024-04-16 22:38:35 +0200
commit20fee9af9e511a9086aa02992bd27035b914ee14 (patch)
tree0eff543690e73a8c01534ac4bebc13b0d0d2e820 /diffcore-pickaxe.c
parentThe ninteenth batch (diff)
downloadgit-20fee9af9e511a9086aa02992bd27035b914ee14.tar.xz
git-20fee9af9e511a9086aa02992bd27035b914ee14.zip
apply: avoid using fixed-size buffer in write_out_one_reject()
On some systems PATH_MAX is not a hard limit. Support longer paths by building them on the heap instead of using static buffers. Take care to work around (arguably buggy) implementations of free(3) that change errno by calling it only after using the errno value. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diffcore-pickaxe.c')
0 files changed, 0 insertions, 0 deletions