Fix GCC7 warnings in cache filter
The thread count did not have enough space for a INT_MAX.
This commit is contained in:
2
server/modules/filter/cache/cachept.cc
vendored
2
server/modules/filter/cache/cachept.cc
vendored
@ -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);
|
||||
|
Reference in New Issue
Block a user