From eacc9e44fb6c07405ca07080deaa23bb89c99b00 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 27 Jul 2023 00:16:05 +0200 Subject: [PATCH] Fix a warning in debug mode. --- mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.2