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

This commit is contained in:
Peter Berg Larsen 2005-04-18 15:37:15 +00:00 committed by Alexandre Julliard
parent 407409f27f
commit 102121993a
1 changed files with 2 additions and 2 deletions

View File

@ -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';
}
}