April 11, 2026
3:12 a.m.
eric pouech (@epo) commented about programs/cmd/wcmdmain.c:
if (len == 0 || len >= ARRAY_SIZE(pathtosearch) - 2) wcscpy(pathtosearch, L"."); sc->has_extension = wcschr(firstParam, L'.') != NULL; - if (wcslen(firstParam) >= MAX_PATH) + if (wcslen(firstParam) >= ARRAY_SIZE(stemofsearch)) { WCMD_output_asis_stderr(WCMD_LoadMessage(WCMD_LINETOOLONG));
(see next comment), but I guess you cloned that part which is also wrong -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10629#note_135861