]> git.sesse.net Git - pkanalytics/commitdiff
Fix a warning in debug mode.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 26 Jul 2023 22:16:05 +0000 (00:16 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 26 Jul 2023 22:16:05 +0000 (00:16 +0200)
mainwindow.cpp

index 3b29d729b1f42f8cc2df9161ac2c2524efd0c2c1..5b53d58f0f41c6f7eb143f2371d27733b0da4623 100644 (file)
@@ -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 {