diff options
author | Carlos MartÃn Nieto <carlosmn@github.com> | 2016-12-19 16:25:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-19 16:25:01 +0000 |
commit | 349016790cedddecbf4c3d3a12daf0fe0018a04f (patch) | |
tree | 461eb2532145f0639ae825ffc9c8d6c6f01306ea | |
parent | c655def1174f814c2adcafff7cecec4d47dc5830 (diff) | |
parent | 23c9ff8632d8ae90d211601d3254ab7f4d35e853 (diff) | |
download | libgit2-349016790cedddecbf4c3d3a12daf0fe0018a04f.tar.gz |
Merge pull request #4033 from andhe/master
Fix off-by-one problems in git_signature__parse
-rw-r--r-- | src/signature.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/signature.c b/src/signature.c index dcc379717..22cba7ef3 100644 --- a/src/signature.c +++ b/src/signature.c @@ -251,7 +251,7 @@ int git_signature__parse(git_signature *sig, const char **buffer_out, * only store timezone if it's not overflowing; * see http://www.worldtimezone.com/faq.html */ - if (hours < 14 && mins < 59) { + if (hours <= 14 && mins <= 59) { sig->when.offset = (hours * 60) + mins; if (tz_start[0] == '-') sig->when.offset = -sig->when.offset; |