From 07555efc6f7b2bbe2d0623e11ffe01f635e153b1 Mon Sep 17 00:00:00 2001 From: max_10 Date: Sun, 19 Dec 2021 23:12:03 +0100 Subject: [PATCH] upnpbrowser: fix possible format-truncation error Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/3f76a4bf69a824d25c2e16553bfcfa24d842eb60 Author: max_10 Date: 2021-12-19 (Sun, 19 Dec 2021) Origin message was: ------------------ - upnpbrowser: fix possible format-truncation error --- src/gui/upnpbrowser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/upnpbrowser.cpp b/src/gui/upnpbrowser.cpp index 7c64f847d..cd9291c6f 100644 --- a/src/gui/upnpbrowser.cpp +++ b/src/gui/upnpbrowser.cpp @@ -1366,7 +1366,7 @@ void CUpnpBrowserGui::updateTimes(const bool force) } //printf("updateTimes: force %d updatePlayed %d\n", force, updatePlayed); - char play_time[14]; + char play_time[24]; snprintf(play_time, sizeof(play_time), "%ld:%02ld", m_time_played / 60, m_time_played % 60); if (updatePlayed)