From c1f8a7b502d96fcd9ce4adb59e210399417fb3b3 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sat, 20 Aug 2022 20:27:37 +0200 Subject: [PATCH] Cygwin: wchar.h: Fix comment Signed-off-by: Corinna Vinschen --- 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);