X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/48406e6b01ff451976b1ef042b723c117e6c40f2..7108a872e03aff0fbc4dfb4b7f0f9718d45463b2:/sshrsa.c diff --git a/sshrsa.c b/sshrsa.c index 2dc09d1c..12229e63 100644 --- a/sshrsa.c +++ b/sshrsa.c @@ -961,7 +961,7 @@ void ssh_rsakex_encrypt(const struct ssh_hash *h, unsigned char *in, int inlen, */ b1 = bignum_from_bytes(out, outlen); b2 = modpow(b1, rsa->exponent, rsa->modulus); - p = out; + p = (char *)out; for (i = outlen; i--;) { *p++ = bignum_byte(b2, i); }