Re: [dev] [st] [PATCH] Fix crash due to invalid timespec given to pselect

From: <k0ga_AT_shike2.com>
Date: Mon, 15 Dec 2014 09:31:24 +0100

> st.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/st.c b/st.c
> index fc91334..db9a332 100644
> --- a/st.c
> +++ b/st.c
> _AT_@ -3922,6 +3922,9 @@ run(void) {
> TIMEDIFF(now,
> lastblink)));
> }
> + drawtimeout.tv_sec = \
> + drawtimeout.tv_nsec / 1E9;
> + drawtimeout.tv_nsec %= (long)1E9;
> } else {
> tv = NULL;
> }

I think is correct and I will commit it this week.

Regards,
Received on Mon Dec 15 2014 - 09:31:24 CET

This archive was generated by hypermail 2.3.0 : Mon Dec 15 2014 - 09:36:08 CET