upnpbrowser: fix possible format-truncation error

Origin commit data
------------------
Commit: 3f76a4bf69
Author: max_10 <max_10@gmx.de>
Date: 2021-12-19 (Sun, 19 Dec 2021)

Origin message was:
------------------
- upnpbrowser: fix possible format-truncation error
This commit is contained in:
max_10
2021-12-19 23:12:03 +01:00
committed by vanhofen
parent 934811d18a
commit 07555efc6f

View File

@@ -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)