upnpbrowser.cpp: reduce warning: ‘%ld’ directive output may be truncated writing between

Origin commit data
------------------
Commit: 6e0fe5cddb
Author: max_10 <max_10@gmx.de>
Date: 2021-11-14 (Sun, 14 Nov 2021)

Origin message was:
------------------
- upnpbrowser.cpp: reduce warning: ‘%ld’ directive output may be truncated writing between
This commit is contained in:
max_10
2021-11-14 22:12:28 +01:00
committed by vanhofen
parent 47a238519e
commit d62ccab79a

View File

@@ -1370,7 +1370,7 @@ void CUpnpBrowserGui::updateTimes(const bool force)
//printf("updateTimes: force %d updatePlayed %d\n", force, updatePlayed); //printf("updateTimes: force %d updatePlayed %d\n", force, updatePlayed);
char play_time[14]; char play_time[14];
snprintf(play_time, sizeof(play_time), "%ld:%02ld", m_time_played / 60, m_time_played % 60); snprintf(play_time, sizeof(play_time), "%zu:%02ld", m_time_played / 60, m_time_played % 60);
if (updatePlayed) if (updatePlayed)
{ {