lib: bugfix for mbstowcs, debugged by Gautam Tirumala.
This commit is contained in:
parent
89df7fc91d
commit
09c18bc918
1 changed files with 1 additions and 1 deletions
|
@ -15,6 +15,6 @@ mbstowcs(register wchar_t *pwcs, register const char *s, size_t n)
|
|||
if (!(*pwcs++ = *s++))
|
||||
return n - i - 1;
|
||||
}
|
||||
return n - i;
|
||||
return n;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue