aboutsummaryrefslogtreecommitdiff
path: root/manual
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
parentb7629ee33f164b07afd36cccf5f18f693d600251 (diff)
downloadglibc-21e66bc528edcbe18d434eb33a601e0f796904c9.zip
glibc-21e66bc528edcbe18d434eb33a601e0f796904c9.tar.gz
glibc-21e66bc528edcbe18d434eb33a601e0f796904c9.tar.bz2
Fix mbrtowc example.
The remaining bytes were not copied correctly.
Diffstat (limited to 'manual')
-rw-r--r--manual/charset.texi2
1 files changed, 1 insertions, 1 deletions
diff --git a/manual/charset.texi b/manual/charset.texi
index 8b2c09c..79854e5 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;