mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 19:37:29 +00:00
Merge pull request #4033 from andhe/master
Fix off-by-one problems in git_signature__parse
This commit is contained in:
commit
349016790c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user