ntdll: Make sure unix_name is zero terminated (valgrind).

In nt_to_unix_file_name_no_root.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Rémi Bernon 2021-04-22 08:21:11 +02:00 committed by Alexandre Julliard
parent e01ad1d275
commit b3f6f21d01
1 changed files with 1 additions and 0 deletions

View File

@ -3290,6 +3290,7 @@ static NTSTATUS nt_to_unix_file_name_no_root( const UNICODE_STRING *nameW, char
if (prefix_len == name_len) /* no subdir, plain DOS device */
{
unix_name[pos + ret] = 0;
*unix_name_ret = unix_name;
return get_dos_device( unix_name_ret, pos );
}