From 6070d2e3e2688954d7522b0fb8dbe92d7f92042a Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 26 May 2018 13:36:21 +0100 Subject: [PATCH] Oops; reinstate one explicit cast to char *. Annoyingly, none of my own builds picked up this accidental use of pointer arithmetic on a void *. --- x11fwd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x11fwd.c b/x11fwd.c index 8b8d4850..1f499e9c 100644 --- a/x11fwd.c +++ b/x11fwd.c @@ -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;