Skip to content
Snippets Groups Projects
Commit 3ea36ba0 authored by knopp's avatar knopp
Browse files

bugfix in use of sizeof in thread-pool.c

parent 50f30cfd
No related branches found
No related tags found
3 merge requests!1757Draft: Use pMAX value in configuration file, instead of hardcoded '23' in asn1_msg.c,!1749hotfix for thread-pool.c,!1746integration_2022_wk41
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment