1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00

Fix mbrtowc example.

The remaining bytes were not copied correctly.
This commit is contained in:
André Goddard Rosa
2009-06-01 11:43:26 -07:00
committed by Ulrich Drepper
parent b7629ee33f
commit 21e66bc528

View File

@@ -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;