summaryrefslogtreecommitdiff
path: root/sfeed.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2019-03-03 13:20:21 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2019-03-03 13:20:21 +0100
commit5c7b95403cbbd62c225a78ed565efa0e76af54b0 (patch)
tree0de8d8947e0b62893888bb2dd28ea529e489e007 /sfeed.c
parent893de4b513adfa7464dbbc454151b9ec1559c0db (diff)
gettzoffset: bit more strict UTC offset parsing
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 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');