mirror of
https://github.com/clangen/musikcube.git
synced 2025-03-14 04:18:36 +00:00
Cleaned up warnings on *nix
This commit is contained in:
parent
6a4e9ae9c3
commit
a22c346293
@ -32,8 +32,6 @@
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "pch.hpp"
|
||||
#include "PersistedPlayQueueQuery.h"
|
||||
#include <core/db/Statement.h>
|
||||
|
@ -41,7 +41,7 @@ namespace musik { namespace core { namespace duration {
|
||||
std::string Duration(int seconds) {
|
||||
int mins = (seconds / 60);
|
||||
int secs = seconds - (mins * 60);
|
||||
char buffer[12];
|
||||
char buffer[128];
|
||||
snprintf(buffer, sizeof(buffer), "%d:%02d", mins, secs);
|
||||
return std::string(buffer);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user