diff options
author | Dan Albert <danalbert@google.com> | 2014-07-20 11:51:26 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2014-07-21 11:45:48 -0700 |
commit | 6b55ba54eff4657cffe053b71e1c9cce2944a8a9 (patch) | |
tree | cec574487f5fe5c039a9b2acd90ea4dbe22e8066 /libc/stdio/stdio_ext.cpp | |
parent | 7dd126a38ca501818b07927f310dcc0f531c0f1f (diff) |
Fix mbsrtowcs(3)'s handling of len parameter.
The len parameter is a _maximum_ length. The previous code was treating
it as an exact length, causing the following typical call to fail:
mbsrtowcs(out, &in, sizeof(out), state); // sizeof(out) > strlen(in)
Change-Id: I48e474fd54ea5f122bc168a4d74bfe08704f28cc
Diffstat (limited to 'libc/stdio/stdio_ext.cpp')
0 files changed, 0 insertions, 0 deletions