1
0
mirror of https://git.zap.org.au/git/trader.git synced 2024-12-04 14:46:45 -05:00

Use the more common post-increment form

This commit is contained in:
John Zaitseff 2018-08-24 13:21:20 +10:00
parent daab2e94da
commit 7647561a92

View File

@ -1149,8 +1149,8 @@ size_t xwcrtomb (char *restrict dest, wchar_t wc, mbstate_t *restrict mbstate)
if ((n = wcrtomb(dest, L'\0', &mbcopy)) == (size_t) -1) { if ((n = wcrtomb(dest, L'\0', &mbcopy)) == (size_t) -1) {
errno_exit(_("xwcrtomb: NUL")); errno_exit(_("xwcrtomb: NUL"));
} }
dest[n] = EILSEQ_REPL; dest[n++] = EILSEQ_REPL;
dest[++n] = '\0'; dest[n] = '\0';
} else { } else {
errno_exit(_("xwcrtomb: '%lc'"), (wint_t) wc); errno_exit(_("xwcrtomb: '%lc'"), (wint_t) wc);
} }