Merge allocations in MSVC dirent compat code
commiteae348ab0aa1e698b1885c62b23ccf944e613b0d
authorOlly Betts <olly@survex.com>
Sun, 15 Dec 2019 22:53:18 +0000 (16 11:53 +1300)
committerOlly Betts <olly@survex.com>
Tue, 30 Aug 2022 03:28:48 +0000 (30 15:28 +1200)
treea81450426377a0cb543a5b0c61a38b75a79f75fc
parent2e0ac79bda362ab0cb22f7c60233bf28b10df474
Merge allocations in MSVC dirent compat code

Make dir->name a one element array member and over-allocate the struct
so there's enough room for its actual size, which means we only need one
malloc() call.

(cherry picked from commit 6c00a75804e8a8605f5d548cb87accc519ee0ac4)
xapian-core/common/msvc_dirent.cc