message: Refactoring Unsafe Functions (`ispcrt/ispc_tasking.cpp`)
  *   Removed use of `sprintf`.
  | `ispcrt/ispc_tasking.cpp`
diff: @@ -667,22 +667,23 @@ static void InitTaskSystem() {
  exit(1);
  }
  - char name[40];
  + constexpr std::size_t SEM_NAME_MAX_SIZE{1024UL};
  + char semaphoreName[SEM_NAME_MAX_SIZE];
  bool success = false;
  srand(time(NULL));
  for (int i = 0; i < 10; i++) {
  // Some platforms (e.g. FreeBSD) require the name to begin with a slash
  - sprintf(name, "/ispc_task.%d.%d", (int)getpid(), (int)rand());
  - workerSemaphore = sem_open(name, O_CREAT, S_IRUSR | S_IWUSR, 0);
  + snprintf(semaphoreName, SEM_NAME_MAX_SIZE, "/ispc_task.%d.%d", static_cast<int>(getpid()), static_cast<int>(rand()));
  + workerSemaphore = sem_open(semaphoreName, O_CREAT, S_IRUSR | S_IWUSR, 0);
  if (workerSemaphore != SEM_FAILED) {
  success = true;
  break;
  }
  - fprintf(stderr, "Failed to create %s\n", name);
  + fprintf(stderr, "Failed to create %s\n", semaphoreName);
  }
  if (!success) {
  - fprintf(stderr, "Error creating semaphore (%s): %s\n", name, strerror(errno));
  + fprintf(stderr, "Error creating semaphore (%s): %s\n", semaphoreName, strerror(errno));
  exit(1);
  }
  