From d62ccab79a9d8cf6a10072e6bbf6eef304a2aa6e Mon Sep 17 00:00:00 2001 From: max_10 Date: Sun, 14 Nov 2021 22:12:28 +0100 Subject: [PATCH] =?UTF-8?q?upnpbrowser.cpp:=20reduce=20warning:=20?= =?UTF-8?q?=E2=80=98%ld=E2=80=99=20directive=20output=20may=20be=20truncat?= =?UTF-8?q?ed=20writing=20between?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/6e0fe5cddb9d16e387d45ee450a052d28669c6ff Author: max_10 Date: 2021-11-14 (Sun, 14 Nov 2021) Origin message was: ------------------ - upnpbrowser.cpp: reduce warning: ‘%ld’ directive output may be truncated writing between --- 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 4db1fa92b..5d97b2f47 100644 --- a/src/gui/upnpbrowser.cpp +++ b/src/gui/upnpbrowser.cpp @@ -1370,7 +1370,7 @@ void CUpnpBrowserGui::updateTimes(const bool force) //printf("updateTimes: force %d updatePlayed %d\n", force, updatePlayed); 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) {