From 6ba20795b4089eb0af6ebf566ec28046c3e92d42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Thu, 5 Oct 2017 14:52:46 +0300 Subject: [PATCH] Fix GCC7 warnings in cache filter The thread count did not have enough space for a INT_MAX. --- server/modules/filter/cache/cachept.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/filter/cache/cachept.cc b/server/modules/filter/cache/cachept.cc index 28d10dbe9..644ab2412 100644 --- a/server/modules/filter/cache/cachept.cc +++ b/server/modules/filter/cache/cachept.cc @@ -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);