From: Steinar H. Gunderson Date: Wed, 26 Jul 2023 22:16:05 +0000 (+0200) Subject: Fix a warning in debug mode. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=eacc9e44fb6c07405ca07080deaa23bb89c99b00;p=pkanalytics Fix a warning in debug mode. --- diff --git a/mainwindow.cpp b/mainwindow.cpp index 3b29d72..5b53d58 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -488,7 +488,7 @@ void MainWindow::update_status(uint64_t t) snprintf(buf, sizeof(buf), "%d–%d | %s | %d passes, %d sec possession", s.our_score, s.their_score, formation.c_str(), s.num_passes, s.possession_sec); if (s.stoppage_sec > 0) { - char buf2[256]; + char buf2[512]; snprintf(buf2, sizeof(buf2), "%s (plus %d sec stoppage)", buf, s.stoppage_sec); ui->status->setText(buf2); } else {