Skip to content

Commit

Permalink
Update src/value.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbackhouse authored Feb 4, 2025
1 parent e505c9b commit 94e1389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ int TimeValue::read(const std::string& buf) {
}
if (buf.size() > 5) {
auto si = std::stoi(buf.substr(spos, 2));
if (si < 0 || si > 59)
if (si < 0 || si > 60)
return printWarning();
time_.second = std::stoi(buf.substr(spos, 2));
} else {
Expand Down

0 comments on commit 94e1389

Please sign in to comment.