From 5ed20d8028b465963e6b26d03d06a8bfca2ba98e Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Sat, 14 Feb 2004 23:20:24 +0000 Subject: [PATCH] fix select errors due to exploding fdnum n git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@605 423420c4-83ab-492f-b58f-81f9feb106b5 --- xwin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xwin.c b/xwin.c index 891e15b..3c7fefb 100644 --- a/xwin.c +++ b/xwin.c @@ -1272,13 +1272,14 @@ xwin_process_events(void) int ui_select(int rdp_socket) { - int n = (rdp_socket > g_x_socket) ? rdp_socket : g_x_socket; + int n; fd_set rfds, wfds; struct timeval tv; BOOL s_timeout = False; while (True) { + n = (rdp_socket > g_x_socket) ? rdp_socket : g_x_socket; /* Process any events already waiting */ if (!xwin_process_events()) /* User quit */