summaryrefslogtreecommitdiff
path: root/sfeed.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2020-10-06 18:45:09 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2020-10-09 11:27:06 +0200
commitc0e9fea2a9661f3fc77a1a608e5ca456972321d9 (patch)
tree66e1fb8640464c470a7a351d1d569f6962756f9a /sfeed.c
parentac9fbcd7c4c5603d0a430b82021e6b45c8a02836 (diff)
sfeed: parse day with max 2 digits (instead of 4)
Diffstat (limited to 'sfeed.c')
-rw-r--r--sfeed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfeed.c b/sfeed.c
index a3ece79..1c3cb0a 100644
--- a/sfeed.c
+++ b/sfeed.c
@@ -510,7 +510,7 @@ parsetime(const char *s, time_t *tp)
s++;
for (; *s && isspace((unsigned char)*s); s++)
;
- for (v = 0, i = 0; *s && i < 4 && isdigit((unsigned char)*s); s++, i++)
+ for (v = 0, i = 0; *s && i < 2 && isdigit((unsigned char)*s); s++, i++)
v = (v * 10) + (*s - '0');
va[2] = v; /* day */
for (; *s && isspace((unsigned char)*s); s++)