Skip to content

Commit

Permalink
8286077: Wider MultiByte conversions
Browse files Browse the repository at this point in the history
Reviewed-by: rhalade, valeriep
  • Loading branch information
wangweij authored and slowhog committed Oct 18, 2022
1 parent 25e88b2 commit ff18674
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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;
}
Expand Down

0 comments on commit ff18674

Please sign in to comment.