Commit 10212199 authored by Peter Berg Larsen's avatar Peter Berg Larsen Committed by Alexandre Julliard

Eliminate strncpy. Correct a \0 assingment to the modstr variable.

parent 407409f2
......@@ -284,8 +284,8 @@ static void TEXT_PathEllipsify (HDC hdc, WCHAR *str, unsigned int max_len,
if (modstr)
{
strncpyW (modstr, str, *len_str);
*(str+*len_str) = '\0';
memcpy(modstr, str, *len_str * sizeof(WCHAR));
modstr[*len_str] = '\0';
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment