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;