From 5c7b95403cbbd62c225a78ed565efa0e76af54b0 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sun, 3 Mar 2019 13:20:21 +0100 Subject: gettzoffset: bit more strict UTC offset parsing --- sfeed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfeed.c b/sfeed.c index 8013551..43f9bba 100644 --- 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'); -- cgit v1.2.3