From 93f7743851b7a01a8c8f54b3753b6e5cd5591e15 Mon Sep 17 00:00:00 2001 From: Wolfgang Date: Wed, 25 Mar 2020 18:15:17 -0700 Subject: [PATCH] Fixing a sanitizer lint problem that was breaking some builds. --- compiler-rt/test/tsan/fiber_cleanup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/test/tsan/fiber_cleanup.cpp b/compiler-rt/test/tsan/fiber_cleanup.cpp index a9552d3..5550368 100644 --- a/compiler-rt/test/tsan/fiber_cleanup.cpp +++ b/compiler-rt/test/tsan/fiber_cleanup.cpp @@ -26,7 +26,7 @@ long count_memory_mappings() { pid_t my_pid = getpid(); char proc_file_name[128]; - snprintf(proc_file_name, 128, "/proc/%ld/maps", my_pid); + snprintf(proc_file_name, sizeof(proc_file_name), "/proc/%ld/maps", my_pid); FILE *proc_file = fopen(proc_file_name, "r"); long line_count = 0; -- 2.7.4