mirror of
https://git.zap.org.au/git/trader.git
synced 2025-01-03 14:57:41 -05:00
Bug fix: preincrement index when storing EILSEQ_REPL
This commit is contained in:
parent
8f9072ecfb
commit
74218edb89
@ -1120,7 +1120,7 @@ size_t xwcrtomb (char *restrict dest, wchar_t wc, mbstate_t *restrict mbstate)
|
||||
errno_exit(_("xwcrtomb: NUL"));
|
||||
}
|
||||
dest[n] = EILSEQ_REPL;
|
||||
dest[n++] = '\0';
|
||||
dest[++n] = '\0';
|
||||
} else {
|
||||
errno_exit(_("xwcrtomb: '%lc'"), (wint_t) wc);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user