Skip to content
Snippets Groups Projects
Commit becf01f2 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Address new GCC build warning in new ssh related code

comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
parent 5755ab4a
No related branches found
No related tags found
No related merge requests found
Pipeline #5125 passed
......@@ -265,7 +265,7 @@ bool sbbs_t::answer()
}
l = 0;
if (cryptStatusOK(cryptGetAttributeString(ssh_session, CRYPT_SESSINFO_SSH_CHANNEL_TERMINAL, terminal, &l)) && l > 0) {
if (l < sizeof(terminal))
if (l < (int)sizeof(terminal))
terminal[l] = 0;
else
terminal[sizeof(terminal)-1] = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment