diff --git a/src/gui/upnpbrowser.cpp b/src/gui/upnpbrowser.cpp index fbeb3e46a..a469f5e65 100644 --- a/src/gui/upnpbrowser.cpp +++ b/src/gui/upnpbrowser.cpp @@ -1286,8 +1286,8 @@ void CUpnpBrowserGui::updateTimes(const bool force) } //printf("updateTimes: force %d updatePlayed %d\n", force, updatePlayed); - char play_time[8]; - snprintf(play_time, 7, "%ld:%02ld", m_time_played / 60, m_time_played % 60); + char play_time[14]; + snprintf(play_time, sizeof(play_time), "%ld:%02ld", m_time_played / 60, m_time_played % 60); if (updatePlayed){ timebox.setText(play_time, CTextBox::CENTER);