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