2008-04-03 Corinna Vinschen <corinna@vinschen.de>
+ * dcrt0.cc (insert_file): Fix potential buffer overflow.
+
+2008-04-03 Corinna Vinschen <corinna@vinschen.de>
+
* path.cc (mount_info::from_fstab): Get module path name of the Cygwin
DLL, not the path of the application.
tmp_pathbuf tp;
PWCHAR wname = tp.w_get ();
- sys_mbstowcs (wname, NT_MAX_PATH + 1, name + 1);
+ sys_mbstowcs (wname, NT_MAX_PATH, name + 1);
f = CreateFileW (wname,
GENERIC_READ, /* open for reading */
FILE_SHARE_READ, /* share for reading */