mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
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:
@@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user