From 01e00632cca110bbd7b424495bf681755df4a7a3 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Mon, 23 Mar 2020 21:02:03 -0700 Subject: [PATCH] [cppcheck] fix format string Found with invalidPrintfArgType_sint Signed-off-by: Rosen Penev --- src/output/plugins/HaikuOutputPlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output/plugins/HaikuOutputPlugin.cxx b/src/output/plugins/HaikuOutputPlugin.cxx index 787a99c0d..81fc6b5d5 100644 --- a/src/output/plugins/HaikuOutputPlugin.cxx +++ b/src/output/plugins/HaikuOutputPlugin.cxx @@ -347,7 +347,7 @@ HaikuOutput::SendTag(const Tag &tag) unsigned seconds = 0; if (!tag.duration.IsNegative()) { seconds = tag.duration.ToS(); - snprintf(timebuf, sizeof(timebuf), "%02d:%02d:%02d", + snprintf(timebuf, sizeof(timebuf), "%02u:%02u:%02u", seconds / 3600, (seconds % 3600) / 60, seconds % 60); }