summaryrefslogtreecommitdiffstats
path: root/collectors/ebpf.plugin/ebpf.c
diff options
context:
space:
mode:
authorStelios Fragkakis <52996999+stelfrag@users.noreply.github.com>2023-12-01 15:45:59 +0200
committerGitHub <noreply@github.com>2023-12-01 15:45:59 +0200
commit096d1b1b2b455375e94738220acb49df847fb269 (patch)
tree3c3f2f85729cd0b9d14311e7935202fd98458188 /collectors/ebpf.plugin/ebpf.c
parent41f39896755e1bb1fd4c009d1bb76c32220134bf (diff)
Code cleanup (#16448)
* Code cleanup * More cleanup * More cleanup * Use FILENAME_MAX * query fix
Diffstat (limited to 'collectors/ebpf.plugin/ebpf.c')
-rw-r--r--collectors/ebpf.plugin/ebpf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/collectors/ebpf.plugin/ebpf.c b/collectors/ebpf.plugin/ebpf.c
index 4dbff7c705..381bf5718c 100644
--- a/collectors/ebpf.plugin/ebpf.c
+++ b/collectors/ebpf.plugin/ebpf.c
@@ -3803,7 +3803,7 @@ static void ebpf_create_statistic_charts(int update_every)
continue;
em->functions.order_thread_chart = j;
- snprintfz(name, 255,"%s_%s", NETDATA_EBPF_THREADS, em->info.thread_name);
+ snprintfz(name, sizeof(name) - 1, "%s_%s", NETDATA_EBPF_THREADS, em->info.thread_name);
em->functions.fcnt_thread_chart_name = strdupz(name);
ebpf_create_thread_chart(name,
"Threads running.",
@@ -3816,7 +3816,7 @@ static void ebpf_create_statistic_charts(int update_every)
#endif
em->functions.order_thread_lifetime = j;
- snprintfz(name, 255,"%s_%s", NETDATA_EBPF_LIFE_TIME, em->info.thread_name);
+ snprintfz(name, sizeof(name) - 1, "%s_%s", NETDATA_EBPF_LIFE_TIME, em->info.thread_name);
em->functions.fcnt_thread_lifetime_name = strdupz(name);
ebpf_create_thread_chart(name,
"Time remaining for thread.",