fix: possible overflow removed

This commit is contained in:
Tobias Reisinger 2019-07-30 13:25:35 +02:00
parent fc0e0b660a
commit 08699c8817

View file

@ -15,7 +15,7 @@ period::to_json()
{ {
Json::Value result; 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(start_str, "%02d:%02d", this->start / 60, this->start % 60);
sprintf(end_str, "%02d:%02d", this->end / 60, this->end % 60); sprintf(end_str, "%02d:%02d", this->end / 60, this->end % 60);