Commit 4da6dc63 authored by Alexandre Julliard's avatar Alexandre Julliard

dwrite: Avoid wcsncpy().

parent 60da2f87
......@@ -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);
}
}
......
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