On Thu Oct 13 16:03:46 2022 +0000, Alex Henrie wrote:
I have changed it to use strndupW which I think is even less ugly, but if you still want an ext variable let me know; I am happy to add one.
I don't think adding another use case of the non-standard `strndupW()` makes things less ugly. Go back to using `wcsdup()` - it doesn't matter that we over-allocate a little as this is only a short-lived string.