dnsapi/tests: Avoid wcsncpy().

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-05-04 21:18:43 +02:00
parent c45d792de3
commit 60da2f877d
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ static void test_DnsQuery(void)
trace("target %s, port %d\n", wine_dbgstr_w(rec->Data.Srv.pNameTarget), rec->Data.Srv.wPort);
wcsncpy(name, rec->Data.Srv.pNameTarget, ARRAY_SIZE(name));
lstrcpynW(name, rec->Data.Srv.pNameTarget, ARRAY_SIZE(name));
DnsRecordListFree(rec, DnsFreeRecordList);
/* IPv4 */