Commit 20fee9a
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>1 parent 548fe35 commit 20fee9a
1 file changed
+17
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4612 | 4612 | | |
4613 | 4613 | | |
4614 | 4614 | | |
4615 | | - | |
| 4615 | + | |
4616 | 4616 | | |
4617 | 4617 | | |
4618 | 4618 | | |
| |||
4645 | 4645 | | |
4646 | 4646 | | |
4647 | 4647 | | |
4648 | | - | |
4649 | | - | |
4650 | | - | |
4651 | | - | |
4652 | | - | |
4653 | | - | |
4654 | | - | |
4655 | | - | |
| 4648 | + | |
4656 | 4649 | | |
4657 | 4650 | | |
4658 | 4651 | | |
4659 | | - | |
4660 | | - | |
4661 | | - | |
4662 | | - | |
| 4652 | + | |
| 4653 | + | |
| 4654 | + | |
| 4655 | + | |
| 4656 | + | |
| 4657 | + | |
| 4658 | + | |
| 4659 | + | |
4663 | 4660 | | |
4664 | | - | |
4665 | | - | |
| 4661 | + | |
| 4662 | + | |
| 4663 | + | |
| 4664 | + | |
4666 | 4665 | | |
4667 | 4666 | | |
4668 | 4667 | | |
4669 | 4668 | | |
4670 | 4669 | | |
4671 | | - | |
| 4670 | + | |
4672 | 4671 | | |
4673 | 4672 | | |
4674 | 4673 | | |
| |||
4693 | 4692 | | |
4694 | 4693 | | |
4695 | 4694 | | |
| 4695 | + | |
| 4696 | + | |
4696 | 4697 | | |
4697 | 4698 | | |
4698 | 4699 | | |
| |||
0 commit comments