Skip to content
Snippets Groups Projects
Commit 48a853e2 authored by Aleksei Voitylov's avatar Aleksei Voitylov Committed by Christoph Langer
Browse files

8286077: Wider MultiByte conversions

Reviewed-by: mbalao
Backport-of: db81dae16f975d7d27c9acf3f4775c9d389895e2
parent 60c9b382
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment