Skip to content

Commit 068c3b3

Browse files
Aleksei VoitylovRealCLanger
authored andcommitted
8286077: Wider MultiByte conversions
Reviewed-by: mbalao Backport-of: db81dae16f975d7d27c9acf3f4775c9d389895e2
1 parent 2537bc5 commit 068c3b3

File tree

1 file changed

+1
-1
lines changed
  • src/java.security.jgss/windows/native/libsspi_bridge

1 file changed

+1
-1
lines changed

src/java.security.jgss/windows/native/libsspi_bridge/sspi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ gss_init_sec_context(OM_uint32 *minor_status,
897897
gss_buffer_desc tn;
898898
gss_display_name(&minor, target_name, &tn, NULL);
899899
int len = MultiByteToWideChar(CP_UTF8, 0, (LPCCH)tn.value, (int)tn.length,
900-
outName, sizeof(outName) - 1);
900+
outName, (sizeof(outName) / sizeof(outName[0])) - 1);
901901
if (len == 0) {
902902
goto err;
903903
}

0 commit comments

Comments
 (0)