commit | 4e5860958767ecc7bc455d2a5e1d2a2096a1c79f | [log] [tgz] |
---|---|---|
author | Dan Albert <danalbert@google.com> | Sun Jul 20 11:51:26 2014 -0700 |
committer | Dan Albert <danalbert@google.com> | Tue Jul 29 14:20:31 2014 -0700 |
tree | 13641cb1efc6499df766c927c7394ceed342603c | |
parent | 1dd1b88bdee77b32d316de2a9a2ed52856f75483 [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 (cherry picked from commit 6b55ba54eff4657cffe053b71e1c9cce2944a8a9)