From: André Goddard Rosa Date: Mon, 1 Jun 2009 18:43:26 +0000 (-0700) Subject: Fix mbrtowc example. X-Git-Tag: fedora/glibc-2.10.1-3~4^2~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e639628d118eb75a2e0de99debbba6e949cdbae;p=thirdparty%2Fglibc.git Fix mbrtowc example. The remaining bytes were not copied correctly. (cherry picked from commit 21e66bc528edcbe18d434eb33a601e0f796904c9) --- diff --git a/manual/charset.texi b/manual/charset.texi index 8b2c09ca79a..79854e50bfc 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;