fix: possible overflow removed
This commit is contained in:
parent
fc0e0b660a
commit
08699c8817
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ period::to_json()
|
|||
{
|
||||
Json::Value result;
|
||||
|
||||
char start_str[6], end_str[6];
|
||||
char start_str[8], end_str[8];
|
||||
|
||||
sprintf(start_str, "%02d:%02d", this->start / 60, this->start % 60);
|
||||
sprintf(end_str, "%02d:%02d", this->end / 60, this->end % 60);
|
||||
|
|
Loading…
Reference in a new issue