mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-28 20:03:39 +00:00
8286077: Wider MultiByte conversions
Reviewed-by: rhalade, valeriep
This commit is contained in:
parent
25e88b21af
commit
ff1867438f
@ -893,7 +893,7 @@ gss_init_sec_context(OM_uint32 *minor_status,
|
||||
gss_buffer_desc tn;
|
||||
gss_display_name(&minor, target_name, &tn, NULL);
|
||||
int len = MultiByteToWideChar(CP_UTF8, 0, (LPCCH)tn.value, (int)tn.length,
|
||||
outName, sizeof(outName) - 1);
|
||||
outName, (sizeof(outName) / sizeof(outName[0])) - 1);
|
||||
if (len == 0) {
|
||||
goto err;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user