1
0
mirror of http://galexander.org/git/simplesshd.git synced 2024-12-28 17:08:08 +00:00

Add type cast to avoid warning.

This commit is contained in:
Greg Alexander 2019-06-15 23:45:11 -04:00
parent 5a5cc34841
commit b7bc52d209

View File

@ -61,7 +61,7 @@ void svr_authinitialise() {
char pw[9];
int i;
ses.authstate.authtypes = AUTH_TYPE_PASSWORD;
genrandom(pw, 8);
genrandom((unsigned char *)pw, 8);
for (i = 0; i < 8; i++) {
pw[i] = tab64[pw[i] & 63];
}