diff options
author | André Goddard Rosa <andre.goddard@gmail.com> | 2009-06-01 11:43:26 -0700 |
---|---|---|
committer | Petr Baudis <pasky@suse.cz> | 2009-06-05 23:09:06 +0200 |
commit | 1e639628d118eb75a2e0de99debbba6e949cdbae (patch) | |
tree | c9938aa23db9e6b0237710c6e6d3c2f2b1408c9c /manual | |
parent | a447f6830f9f2a9543247790b1f9b90a465e6079 (diff) |
Fix mbrtowc example.
The remaining bytes were not copied correctly.
(cherry picked from commit 21e66bc528edcbe18d434eb33a601e0f796904c9)
Diffstat (limited to 'manual')
-rw-r--r-- | manual/charset.texi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/manual/charset.texi b/manual/charset.texi index 8b2c09ca79..79854e50bf 100644 --- a/manual/charset.texi +++ b/manual/charset.texi @@ -1234,7 +1234,7 @@ file_mbsrtowcs (int input, int output) /* @r{If any characters must be carried forward,} @r{put them at the beginning of @code{buffer}.} */ if (filled > 0) - memmove (inp, buffer, filled); + memmove (buffer, inp, filled); @} return 1; |