1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Fix a stupid sign bug in run_timers() that broke Windows Plink (and

should really have broken everything else too).

[originally from svn r9674]
This commit is contained in:
Ben Harris 2012-09-19 22:12:00 +00:00
parent 5db48dcddb
commit a3aca31b55

View File

@ -174,8 +174,8 @@ int run_timers(unsigned long anow, unsigned long *next)
*/
delpos234(timers, 0);
sfree(first);
} else if (now - first->when_set - 10 >
first->now - first->when_set - 10) {
} else if (now - (first->when_set - 10) >
first->now - (first->when_set - 10)) {
/*
* This timer is active and has reached its running
* time. Run it.