Fix GCC7 warnings in cache filter

The thread count did not have enough space for a INT_MAX.
This commit is contained in:
Markus Mäkelä
2017-10-05 14:52:46 +03:00
parent 75d298693c
commit 6ba20795b4

View File

@ -164,7 +164,7 @@ CachePT* CachePT::Create(const std::string& name,
while (!error && (i < n_threads))
{
char suffix[6]; // Enough for 99999 threads
char suffix[12]; // Enough for 99999 threads
sprintf(suffix, "%d", i);
string namest(name + "-" + suffix);