https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=c1f8a7b502d96fcd9ce4adb59e210399417fb3b3
commit c1f8a7b502d96fcd9ce4adb59e210399417fb3b3 Author: Corinna Vinschen <[email protected]> Date: Sat Aug 20 20:27:37 2022 +0200 Cygwin: wchar.h: Fix comment Signed-off-by: Corinna Vinschen <[email protected]> Diff: --- winsup/cygwin/local_includes/wchar.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winsup/cygwin/local_includes/wchar.h b/winsup/cygwin/local_includes/wchar.h index 0484b27d5..b2ddd4575 100644 --- a/winsup/cygwin/local_includes/wchar.h +++ b/winsup/cygwin/local_includes/wchar.h @@ -106,7 +106,7 @@ static inline size_t sys_mbstouni_alloc (PUNICODE_STRING dst, int type, const char *src, 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); dst->MaximumLength = len * sizeof (WCHAR); dst->Length = dst->MaximumLength - sizeof (WCHAR);
