From 8b6ebe8fd56227d9ac34a51a7e7b51e54c487e20 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 24 Jul 2000 19:14:38 +0000 Subject: [PATCH] * syscalls.cc (_link): Corrected previous patch. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/syscalls.cc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 37e60c37a..a78698178 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +Mon Jul 24 21:10:00 2000 Corinna Vinschen + + * syscalls.cc (_link): Corrected previous patch. + Mon Jul 24 13:26:00 2000 Corinna Vinschen * fhandler.h (class fhandler_dev_random): Add members for managing diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 3e67c0972..1bc3a7f8d 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -547,7 +547,7 @@ _link (const char *a, const char *b) lpContext = NULL; cygwin_conv_to_full_win32_path (real_b.get_win32 (), buf); - cbPathLen = sys_mbstowcs (wbuf, buf, MAX_PATH); + cbPathLen = sys_mbstowcs (wbuf, buf, MAX_PATH) * sizeof (WCHAR); StreamId.dwStreamId = BACKUP_LINK; StreamId.dwStreamAttributes = 0;