make mbstowcs(NULL, string, 0) correctly return the length of the
authordjm <djm@openbsd.org>
Sat, 23 Aug 2008 07:51:35 +0000 (07:51 +0000)
committerdjm <djm@openbsd.org>
Sat, 23 Aug 2008 07:51:35 +0000 (07:51 +0000)
commitc59d7441e1d55e2065d63f280643aa4ca4f34323
tree3ae2e93234bb35cc4e7f83cf4fd5f65927c7cc47
parentfbeefdb4fbe4ae453bb6a81a1304e09836065dbe
make mbstowcs(NULL, string, 0) correctly return the length of the
wchar_t string needed to represent "string", which in our case
is just strlen(string); feedback & "looks right" deraadt@
lib/libc/locale/multibyte_sb.c