mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
Fix mbrtowc example.
The remaining bytes were not copied correctly.
This commit is contained in:
parent
b7629ee33f
commit
21e66bc528
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue