aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/SSecurityRSAAES.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2023-03-02 14:33:50 +0100
committerPierre Ossman <ossman@cendio.se>2023-03-18 13:30:34 +0100
commit19df176862ff0687cabc435056061a1b6cbe9ff2 (patch)
treea76c497fa8c7128ea2651f48fd170d8963b007db /common/rfb/SSecurityRSAAES.cxx
parent15a0da6157d5d34362e68591124324ba5a77ad66 (diff)
downloadtigervnc-19df176862ff0687cabc435056061a1b6cbe9ff2.tar.gz
tigervnc-19df176862ff0687cabc435056061a1b6cbe9ff2.zip
Consistently use uint8_t for data buffers
These will always be byte streams at heart, so let's try to keep them with a proper type. Should make it clearer how they will be used.
Diffstat (limited to 'common/rfb/SSecurityRSAAES.cxx')
-rw-r--r--common/rfb/SSecurityRSAAES.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rfb/SSecurityRSAAES.cxx b/common/rfb/SSecurityRSAAES.cxx
index 042e4838..2a8dfa3e 100644
--- a/common/rfb/SSecurityRSAAES.cxx
+++ b/common/rfb/SSecurityRSAAES.cxx
@@ -539,12 +539,12 @@ bool SSecurityRSAAES::readCredentials()
uint8_t lenUsername = rais->readU8();
if (!rais->hasDataOrRestore(lenUsername + 1))
return false;
- rais->readBytes(username, lenUsername);
+ rais->readBytes((uint8_t*)username, lenUsername);
username[lenUsername] = 0;
uint8_t lenPassword = rais->readU8();
if (!rais->hasDataOrRestore(lenPassword))
return false;
- rais->readBytes(password, lenPassword);
+ rais->readBytes((uint8_t*)password, lenPassword);
password[lenPassword] = 0;
rais->clearRestorePoint();
return true;