Browse Source

Fix for GCC warning: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size 9

Fixes #903
Jorrit Rouwe 1 year ago
parent
commit
3487b287a8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Jolt/Core/JobSystemThreadPool.cpp

+ 1 - 1
Jolt/Core/JobSystemThreadPool.cpp

@@ -305,7 +305,7 @@ void JobSystemThreadPool::QueueJobs(Job **inJobs, uint inNumJobs)
 void JobSystemThreadPool::ThreadMain(int inThreadIndex)
 void JobSystemThreadPool::ThreadMain(int inThreadIndex)
 {
 {
 	// Name the thread
 	// Name the thread
-	char name[16];
+	char name[64];
 	snprintf(name, sizeof(name), "Worker %d", int(inThreadIndex + 1));
 	snprintf(name, sizeof(name), "Worker %d", int(inThreadIndex + 1));
 
 
 #if defined(JPH_PLATFORM_WINDOWS) || defined(JPH_PLATFORM_LINUX)
 #if defined(JPH_PLATFORM_WINDOWS) || defined(JPH_PLATFORM_LINUX)