Commit 1a9327d5 authored by Jan Djärv's avatar Jan Djärv

* nsterm.m (ns_select): Check writefds before call to

FD_ISSET.

Fixes: debbugs:12668
parent afb8aa24
2012-10-18 Jan Djärv <jan.h.d@swipnet.se>
* nsterm.m (ns_select): Check writefds before call to
FD_ISSET (Bug#12668).
2012-10-18 Daniel Colascione <dancol@dancol.org>
* alloc.c (NSTATICS): Increase from 0x650 to 0x1000
......
......@@ -3443,10 +3443,10 @@ overwriting cursor (usually when cursor on a tab) */
/* NSTRACE (ns_select); */
for (k = 0; readfds && k < nfds+1; k++)
for (k = 0; k < nfds+1; k++)
{
if (FD_ISSET(k, readfds)) ++nr;
if (FD_ISSET(k, writefds)) ++nr;
if (readfds && FD_ISSET(k, readfds)) ++nr;
if (writefds && FD_ISSET(k, writefds)) ++nr;
}
if (NSApp == nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment