1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Oops; reinstate one explicit cast to char *.

Annoyingly, none of my own builds picked up this accidental use of
pointer arithmetic on a void *.
This commit is contained in:
Simon Tatham 2018-05-26 13:36:21 +01:00
parent 7babe66a83
commit 6070d2e3e2

View File

@ -1057,7 +1057,7 @@ void *x11_make_greeting(int endian, int protomajor, int protominor,
t = time(NULL);
PUT_32BIT_MSB_FIRST(realauthdata+14, t);
des_encrypt_xdmauth(auth_data + 9, realauthdata, authdatalen);
des_encrypt_xdmauth((char *)auth_data + 9, realauthdata, authdatalen);
} else {
authdata = realauthdata;
authdatalen = 0;