Freshen build/bootstrap/cocmd

See https://news.ycombinator.com/item?id=41055121
This commit is contained in:
Justine Tunney 2024-07-27 23:22:11 -07:00
parent 8621034d42
commit e18fe1e112
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
11 changed files with 15 additions and 18 deletions

View file

@ -38,7 +38,7 @@ size_t wcsnrtombs(char *dst, const wchar_t **wcs, size_t wn, size_t n,
if (!dst)
n = 0;
while (ws && wn) {
char tmp[MB_LEN_MAX];
char tmp[MB_LEN_MAX] = {0};
size_t l = wcrtomb(n < MB_LEN_MAX ? tmp : dst, *ws, 0);
if (l == -1) {
cnt = -1;