sfeed

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

commit 5c7b95403cbbd62c225a78ed565efa0e76af54b0
parent 893de4b513adfa7464dbbc454151b9ec1559c0db
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun,  3 Mar 2019 13:20:21 +0100

gettzoffset: bit more strict UTC offset parsing

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

diff --git a/sfeed.c b/sfeed.c @@ -433,7 +433,7 @@ gettzoffset(const char *s) case '+': for (i = 0, p = s + 1; i < 2 && *p && isdigit((unsigned char)*p); i++, p++) tzhour = (tzhour * 10) + (*p - '0'); - if (*p && !isdigit((unsigned char)*p)) + if (*p == ':') p++; for (i = 0; i < 2 && *p && isdigit((unsigned char)*p); i++, p++) tzmin = (tzmin * 10) + (*p - '0');