1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -05:00

Work around an SC bug that causes it to try to use the same register for

two purposes in s_wrpkt_prepare().  This makes SSH1 work on 68K Macs, at
least until I deactivate the terminal window...

[originally from svn r2876]
This commit is contained in:
Ben Harris
2003-02-23 00:13:17 +00:00
parent bd149e7b1e
commit 01105493cc
2 changed files with 12 additions and 5 deletions

12
ssh.c
View File

@ -1167,8 +1167,18 @@ static void s_wrpkt_start(Ssh ssh, int type, int len)
static int s_wrpkt_prepare(Ssh ssh)
{
int pad, len, biglen, i;
int pad, biglen, i;
unsigned long crc;
#ifdef __SC__
/*
* XXX various versions of SC (including 8.8.4) screw up the
* register allocation in this function and use the same register
* (D6) for len and as a temporary, with predictable results. The
* following sledgehammer prevents this.
*/
volatile
#endif
int len;
ssh->pktout.body[-1] = ssh->pktout.type;