blob: 9c53967407917f314b481b0ec1261634422f1d2f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- src/util.c.orig 2001-04-30 15:14:14 UTC
+++ src/util.c
@@ -125,7 +125,7 @@ timedesc2sec(char *desc, int min, int max)
while (1) {
if (*tptr == '-') return -1;
value = strtol(tptr, &tptr, 10);
- if (errno) return -1;
+ if (errno && errno != EINVAL) return -1;
switch (*tptr) {
case 'd':
sec += value*60*60*24;
|