lib: bugfix for mbstowcs, debugged by Gautam Tirumala.

This commit is contained in:
Ben Gras 2010-07-18 20:57:55 +00:00
parent 89df7fc91d
commit 09c18bc918

View file

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