~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix a pty-freeing error which caused a segfault if you attempted to
[sgt/putty]
/
timing.c
diff --git
a/timing.c
b/timing.c
index
11a0305
..
ccd76cd
100644
(file)
--- a/
timing.c
+++ b/
timing.c
@@
-174,8
+174,8
@@
int run_timers(unsigned long anow, unsigned long *next)
*/
delpos234(timers, 0);
sfree(first);
*/
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.
/*
* This timer is active and has reached its running
* time. Run it.