0
0
mirror of https://github.com/vim/vim.git synced 2025-11-16 23:24:03 -05:00
Files
vim/src/alloc.c
Damien Lejay 0a9ad34cad patch 9.1.1691: over-allocation in ga_concat_strings()
Problem:  over-allocation in ga_concat_strings()
Solution: Fix ga_concat_strings() and only allocate n-1 separator length
          bytes (Damien Lejay).

ga_concat_strings() was adding the separator length for every item,
including the last one. Only (n - 1) separators are actually used.
This caused harmless but unnecessary overallocation.

closes: #18112

Signed-off-by: Damien Lejay <damien@lejay.be>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-08-26 17:55:14 +02:00

19 KiB