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:
12
ssh.c
12
ssh.c
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user