diff options
Diffstat (limited to 'src/cmd/troff/mbwc.c')
-rw-r--r-- | src/cmd/troff/mbwc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/troff/mbwc.c b/src/cmd/troff/mbwc.c index e5234896..c97b036c 100644 --- a/src/cmd/troff/mbwc.c +++ b/src/cmd/troff/mbwc.c @@ -152,9 +152,9 @@ wcstombs(char *s, const wchar_t *pwcs, size_t n) if(p+d <= pe+3) { *p++ = buf[0]; if(d > 1) { - *p++ = buf[2]; + *p++ = buf[1]; if(d > 2) - *p++ = buf[3]; + *p++ = buf[2]; } } if(c == 0) |