4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-31 19:40:33 +08:00

Cygwin: wchar.h: Fix comment

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2022-08-20 20:27:37 +02:00
parent 2ec96890db
commit c1f8a7b502

View File

@ -106,7 +106,7 @@ static inline size_t
sys_mbstouni_alloc (PUNICODE_STRING dst, int type, const char *src, sys_mbstouni_alloc (PUNICODE_STRING dst, int type, const char *src,
size_t nms = (size_t) -1) size_t nms = (size_t) -1)
{ {
/* sys_mbstowcs returns length *including* trailing \0 */ /* sys_mbstowcs_alloc returns length *including* trailing \0 */
size_t len = sys_mbstowcs_alloc (&dst->Buffer, type, src, nms); size_t len = sys_mbstowcs_alloc (&dst->Buffer, type, src, nms);
dst->MaximumLength = len * sizeof (WCHAR); dst->MaximumLength = len * sizeof (WCHAR);
dst->Length = dst->MaximumLength - sizeof (WCHAR); dst->Length = dst->MaximumLength - sizeof (WCHAR);