snore

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

commit 873b637fb00d474eb10e93ce46b8dfe04be6cdc6
parent 7416024725de94f0368c952bfb9d83e46ae87ee9
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Sun, 29 May 2022 18:29:22 +0200

Fix double overflow check in time_to_sec()

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

diff --git a/snore.c b/snore.c @@ -73,7 +73,7 @@ time_to_sec(char *s) { for(j = 0; j < LENGTH(symbols); ++j) { if(s[0] == symbols[j].sym) { part *= symbols[j].mult; - if(part >= UINT_MAX) + if(part >= INT_MAX) return -1; s++; break;