From 1e639628d118eb75a2e0de99debbba6e949cdbae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Goddard=20Rosa?= Date: Mon, 1 Jun 2009 11:43:26 -0700 Subject: [PATCH] Fix mbrtowc example. The remaining bytes were not copied correctly. (cherry picked from commit 21e66bc528edcbe18d434eb33a601e0f796904c9) --- manual/charset.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2