diff --git a/cmake_targets/tools/build_helper b/cmake_targets/tools/build_helper index 62d813d6d24a83228355970fb8caaceeb6df6600..adc0a636db75b62f7d6f42a9ae22374a971e0b2e 100755 --- a/cmake_targets/tools/build_helper +++ b/cmake_targets/tools/build_helper @@ -121,6 +121,7 @@ check_supported_distribution() { "rhel8.5") return 0 ;; "rhel8.6") return 0 ;; "rhel8.7") return 0 ;; + "rhel9.0") return 0 ;; "centos7") return 0 ;; "centos8") return 0 ;; esac diff --git a/common/utils/threadPool/thread-pool.c b/common/utils/threadPool/thread-pool.c index 75252a9143c9db38ff9520ac1d4244c928c6ec5a..3cd18fab0292434846a6f36b8253019b1aaa8388 100644 --- a/common/utils/threadPool/thread-pool.c +++ b/common/utils/threadPool/thread-pool.c @@ -167,9 +167,9 @@ void initFloatingCoresTpool(int nbThreads,tpool_t *pool, bool performanceMeas, c if (nbThreads) { strcpy(threads,"-1"); for (int i=1; i < nbThreads; i++) - strncat(threads,",-1", sizeof(threads-1)); + strncat(threads,",-1", sizeof(threads)-1); } - threads[sizeof(threads-1)]=0; + threads[sizeof(threads)-1]=0; initNamedTpool(threads, pool, performanceMeas, name); }