aboutsummaryrefslogtreecommitdiff
path: root/manual/charset.texi
diff options
context:
space:
mode:
authorAndré Goddard Rosa <andre.goddard@gmail.com>2009-06-01 11:43:26 -0700
committerUlrich Drepper <drepper@redhat.com>2009-06-01 11:43:26 -0700
commit21e66bc528edcbe18d434eb33a601e0f796904c9 (patch)
tree49647cc6abb21a2a5c0020b90083c240f4bfad1b /manual/charset.texi
parentb7629ee33f164b07afd36cccf5f18f693d600251 (diff)
downloadglibc-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/charset.texi')
-rw-r--r--manual/charset.texi2
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;