mirror of
https://github.com/openjdk/jdk15u.git
synced 2025-12-15 13:54:50 -06:00
8286077: Wider MultiByte conversions
Reviewed-by: yan Backport-of: db81dae16f975d7d27c9acf3f4775c9d389895e2
This commit is contained in:
parent
eb999ab571
commit
907ded08fa
@ -897,7 +897,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