]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Add a cast for a char * vs unsigned char * conflict.
authorBen Harris <bjh21@bjh21.me.uk>
Sat, 11 Jan 2003 14:08:46 +0000 (14:08 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Sat, 11 Jan 2003 14:08:46 +0000 (14:08 +0000)
[originally from svn r2541]

x11fwd.c

index 56b6eae29b81641ab8cf5573f3e0529415807709..5ef53d491bc4fc4dd85209440a884a9c0232cb18 100644 (file)
--- a/x11fwd.c
+++ b/x11fwd.c
@@ -401,7 +401,8 @@ int x11_send(Socket s, char *data, int len)
                PUT_16BIT_MSB_FIRST(realauthdata+12, port);
                t = time(NULL);
                PUT_32BIT_MSB_FIRST(realauthdata+14, t);
-               des_encrypt_xdmauth(pr->auth->realdata+9, realauthdata, 24);
+               des_encrypt_xdmauth(pr->auth->realdata+9,
+                                   (unsigned char *)realauthdata, 24);
            }
             /* implement other auth methods here if required */