user32: Correct termination of returning string in Text_Ellipsify.

This commit is contained in:
Nikolay Sivov 2008-05-21 20:49:07 +04:00 committed by Alexandre Julliard
parent 6868691af9
commit 87bb1cbcdc
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ static void TEXT_Ellipsify (HDC hdc, WCHAR *str, unsigned int max_len,
if (modstr)
{
memcpy (modstr, str, *len_str * sizeof(WCHAR));
*(str+*len_str) = '\0';
modstr[*len_str] = '\0';
}
}