From: ben Date: Sat, 29 Mar 2003 23:05:36 +0000 (+0000) Subject: In a couple of places, snewn() was being asked for an array of char which was X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/92d60585a150b47c7dbca3be8f1b9b9c0a3af250 In a couple of places, snewn() was being asked for an array of char which was then assigned to an unsigned char * variabe. This fixes that. git-svn-id: svn://svn.tartarus.org/sgt/putty@3023 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/ssh.c b/ssh.c index 25dee28f..816d7650 100644 --- a/ssh.c +++ b/ssh.c @@ -4984,7 +4984,7 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen, int ispkt) sigdata_len = ssh->pktout.length - 5 + 4 + 20; if (ssh->remote_bugs & BUG_SSH2_PK_SESSIONID) sigdata_len -= 4; - sigdata = snewn(sigdata_len, char); + sigdata = snewn(sigdata_len, unsigned char); p = 0; if (!(ssh->remote_bugs & BUG_SSH2_PK_SESSIONID)) { PUT_32BIT(sigdata+p, 20); diff --git a/x11fwd.c b/x11fwd.c index 914f3f07..91d68d24 100644 --- a/x11fwd.c +++ b/x11fwd.c @@ -385,7 +385,7 @@ int x11_send(Socket s, char *data, int len) pr->auth_dsize = (pr->auth_dlen + 3) & ~3; /* Leave room for a terminating zero, to make our lives easier. */ pr->auth_protocol = snewn(pr->auth_psize + 1, char); - pr->auth_data = snewn(pr->auth_dsize, char); + pr->auth_data = snewn(pr->auth_dsize, unsigned char); } /*