diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2020-10-06 18:45:09 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2020-10-09 11:27:06 +0200 |
commit | c0e9fea2a9661f3fc77a1a608e5ca456972321d9 (patch) | |
tree | 66e1fb8640464c470a7a351d1d569f6962756f9a | |
parent | ac9fbcd7c4c5603d0a430b82021e6b45c8a02836 (diff) |
sfeed: parse day with max 2 digits (instead of 4)
-rw-r--r-- | sfeed.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++) |