From: Ivan Delalande Date: Fri, 12 Dec 2014 07:39:07 +0000 (+0100) Subject: Fix crash due to invalid timespec given to pselect X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;ds=sidebyside;h=708b697ed77e1ba4e96399ed6cb0f73a37565321;hp=708b697ed77e1ba4e96399ed6cb0f73a37565321;p=st.git Fix crash due to invalid timespec given to pselect If blinktimeout is set to a value greater than 1000, pselect will receive a timeout argument with tv_nsec greater than 1E9 (1 sec), and fail, making st crash. This patch just ensures that the timespec structure is correctly filled with a value properly decomposed between tv_sec and tv_nsec. Reported by JasonWoof on IRC. Thanks! ---