From: ben Date: Sat, 11 Jan 2003 14:08:46 +0000 (+0000) Subject: Add a cast for a char * vs unsigned char * conflict. X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/6e7f5aeeca612c150acbeee265c44061c3beaa3d Add a cast for a char * vs unsigned char * conflict. git-svn-id: svn://svn.tartarus.org/sgt/putty@2541 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/x11fwd.c b/x11fwd.c index 56b6eae2..5ef53d49 100644 --- 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 */