sfeed

Simple RSS and Atom feed parser
git clone https://git.sinitax.com/codemadness/sfeed
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit c0e9fea2a9661f3fc77a1a608e5ca456972321d9
parent ac9fbcd7c4c5603d0a430b82021e6b45c8a02836
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Tue,  6 Oct 2020 18:45:09 +0200

sfeed: parse day with max 2 digits (instead of 4)

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

diff --git 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++)