mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-22 13:35:03 -05:00
Another potential segfault fixed. Thanks RDB :-)
[originally from svn r1301]
This commit is contained in:
parent
89d13dbe29
commit
bdb8092492
3
rlogin.c
3
rlogin.c
@ -177,6 +177,9 @@ static void rlogin_size(void)
|
|||||||
{
|
{
|
||||||
char b[12] = { '\xFF', '\xFF', 0x73, 0x73, 0, 0, 0, 0, 0, 0, 0, 0 };
|
char b[12] = { '\xFF', '\xFF', 0x73, 0x73, 0, 0, 0, 0, 0, 0, 0, 0 };
|
||||||
|
|
||||||
|
if (s == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
b[6] = cols >> 8;
|
b[6] = cols >> 8;
|
||||||
b[7] = cols & 0xFF;
|
b[7] = cols & 0xFF;
|
||||||
b[4] = rows >> 8;
|
b[4] = rows >> 8;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user