summaryrefslogtreecommitdiff
path: root/src/basic
diff options
context:
space:
mode:
Diffstat (limited to 'src/basic')
-rw-r--r--src/basic/calendarspec.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/basic/calendarspec.c b/src/basic/calendarspec.c
index 1de04feedf..4ef22dfffb 100644
--- a/src/basic/calendarspec.c
+++ b/src/basic/calendarspec.c
@@ -486,6 +486,10 @@ static int parse_component_decimal(const char **p, bool usec, unsigned long *res
if (*e == '.') {
unsigned add;
+ /* This is the start of a range, not a fractional part */
+ if (e[1] == '.')
+ goto finish;
+
e++;
r = parse_fractional_part_u(&e, 6, &add);
if (r < 0)
@@ -497,6 +501,7 @@ static int parse_component_decimal(const char **p, bool usec, unsigned long *res
}
}
+finish:
*p = e;
*res = value;