[2851] in Release_Engineering
xlogin idle messages too large
daemon@ATHENA.MIT.EDU (Mark Rosenstein)
Tue Jun 2 18:41:43 1992
Date: Tue, 2 Jun 92 18:41:28 -0400
From: Mark Rosenstein <mar@MIT.EDU>
To: rel-eng@MIT.EDU
The following diff makes sure that things work even if the motd is
too large to fit on the screen.
-Mark
*** /source/athena/athena.etc/xdm/xlogin/xlogin.c Fri May 29 13:56:02 1992
--- ./xlogin.c Tue Jun 2 18:40:11 1992
***************
*** 448,453 ****
--- 448,456 ----
y_max = HeightOfScreen(XtScreen(ins)) - y_max;
}
+ if (x_max < 1) x_max = 1;
+ if (y_max < 1) y_max = 1;
+
x = random() % x_max;
y = random() % y_max;
XtMoveWidget(ins, x, y);