1
0
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:
Simon Tatham 2001-09-25 20:07:55 +00:00
parent 89d13dbe29
commit bdb8092492

View File

@ -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;