snore

sleep with feedback
git clone git://git.bitsmanent.org/snore
Log | Files | Refs | README | LICENSE

commit caad43cde564123b541df3cb2652df55937ac45f
parent cac046152a52246c5bf27d135f24a15af9275e90
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Sat, 28 May 2022 00:35:17 +0200

Merge pull request #18 from jpdoyle/fix-overflow

Fix time_print signed overflow
Diffstat:
Msnore.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/snore.c b/snore.c @@ -119,7 +119,7 @@ main(int argc, char *argv[]) { if(tm < 0) die("%s: wrong time\n", argv[i]); endtm += tm; - if(endtm >= UINT_MAX) + if(endtm >= INT_MAX) die("%s: time too large\n", argv[0]); } }