diff options
author | André Goddard Rosa <andre.goddard@gmail.com> | 2009-06-01 11:43:26 -0700 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-06-01 11:43:26 -0700 |
commit | 21e66bc528edcbe18d434eb33a601e0f796904c9 (patch) | |
tree | 49647cc6abb21a2a5c0020b90083c240f4bfad1b /manual | |
parent | b7629ee33f164b07afd36cccf5f18f693d600251 (diff) | |
download | glibc-21e66bc528edcbe18d434eb33a601e0f796904c9.tar glibc-21e66bc528edcbe18d434eb33a601e0f796904c9.tar.gz glibc-21e66bc528edcbe18d434eb33a601e0f796904c9.tar.bz2 glibc-21e66bc528edcbe18d434eb33a601e0f796904c9.zip |
Fix mbrtowc example.
The remaining bytes were not copied correctly.
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; |