[cppcheck] fix format string

Found with invalidPrintfArgType_sint

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-03-23 21:02:03 -07:00 committed by Max Kellermann
parent 9bad5ee3c5
commit 01e00632cc

View File

@ -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);
}