Commit 3cd7388
convert bare readlink to strbuf_readlink
This particular readlink call never NUL-terminated its
result, making it a potential source of bugs (though there
is no bug now, as it currently always respects the length
field). Let's just switch it to strbuf_readlink which is
shorter and less error-prone.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 9619ff1 commit 3cd7388
1 file changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2014 | 2014 | | |
2015 | 2015 | | |
2016 | 2016 | | |
2017 | | - | |
2018 | | - | |
2019 | | - | |
2020 | | - | |
| 2017 | + | |
| 2018 | + | |
2021 | 2019 | | |
2022 | | - | |
2023 | | - | |
2024 | | - | |
| 2020 | + | |
2025 | 2021 | | |
2026 | 2022 | | |
2027 | 2023 | | |
2028 | 2024 | | |
| 2025 | + | |
2029 | 2026 | | |
2030 | 2027 | | |
2031 | 2028 | | |
| |||
0 commit comments