Skip to content

Commit 3490167

Browse files
authored
Merge pull request libgit2#4033 from andhe/master
Fix off-by-one problems in git_signature__parse
2 parents c655def + 23c9ff8 commit 3490167

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/signature.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ int git_signature__parse(git_signature *sig, const char **buffer_out,
251251
* only store timezone if it's not overflowing;
252252
* see http://www.worldtimezone.com/faq.html
253253
*/
254-
if (hours < 14 && mins < 59) {
254+
if (hours <= 14 && mins <= 59) {
255255
sig->when.offset = (hours * 60) + mins;
256256
if (tz_start[0] == '-')
257257
sig->when.offset = -sig->when.offset;

0 commit comments

Comments
 (0)