mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 15:34:50 +00:00
dwrite: Avoid wcsncpy().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
60da2f877d
commit
4da6dc6384
|
@ -2649,8 +2649,7 @@ HRESULT opentype_get_font_facename(struct file_stream_desc *stream_desc, WCHAR *
|
|||
{
|
||||
*nameW = 0;
|
||||
IDWriteLocalizedStrings_GetString(lfnames, index, nameW, length + 1);
|
||||
wcsncpy(lfname, nameW, LF_FACESIZE);
|
||||
lfname[LF_FACESIZE-1] = 0;
|
||||
lstrcpynW(lfname, nameW, LF_FACESIZE);
|
||||
heap_free(nameW);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue