21 Jul
2023
21 Jul
'23
6:20 p.m.
On Fri Jul 21 17:03:58 2023 +0000, Victor Hermann Chiletto wrote:
I think we should replace wcsncpy with lstrcpynW here and on lines 392 and 408. I think it can go in another MR.
I don't think we should use lstrcpynW here (but we also shouldn't use wcsncpy). I think that the correct solution is to reject locale if it doesn't fit into the buffer. I don't think things will work with truncated locale name. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/3375#note_39753