Cleaned up warnings on *nix

This commit is contained in:
casey langen 2018-02-17 12:48:05 -08:00
parent 6a4e9ae9c3
commit a22c346293
2 changed files with 1 additions and 3 deletions

View File

@ -32,8 +32,6 @@
//
//////////////////////////////////////////////////////////////////////////////
#pragma once
#include "pch.hpp"
#include "PersistedPlayQueueQuery.h"
#include <core/db/Statement.h>

View File

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