[newlib-cygwin] Cygwin: wchar.h: Fix comment
Corinna Vinschen
corinna@sourceware.org
Sat Aug 20 20:33:40 GMT 2022
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=c1f8a7b502d96fcd9ce4adb59e210399417fb3b3
commit c1f8a7b502d96fcd9ce4adb59e210399417fb3b3
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Sat Aug 20 20:27:37 2022 +0200
Cygwin: wchar.h: Fix comment
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
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);
More information about the Cygwin-cvs
mailing list